Class Simplepay::Support::Epoch
In: lib/simplepay/support/epoch.rb
Parent: Object
RuntimeError Error Service Standard Marketplace Donation Subscription MarketplacePolicy Interval SubscriptionPeriod BillingFrequency Comparable Field Service Epoch Currency Amount Boolean ResponseStatusCode Services Authentication FormHelper NotificationHelper RailsHelper Helpers Interval Currency Support Boolean Simplepay dot/f_2.png

Acts as a Simplepay::Support::Field :class delegator.

This class provides a means to have Time values returned as an integer since epoch (January 1, 1970).


new   to_s  

Public Class methods


# File lib/simplepay/support/epoch.rb, line 12
      def initialize(time)
        @value = time ? parse(time) :

Public Instance methods

Returns a String of Integers, representing seconds since epoch.


# File lib/simplepay/support/epoch.rb, line 19
      def to_s