Class: WebPay::RecursionResponse
- Inherits:
-
Entity
- Object
- Entity
- WebPay::RecursionResponse
show all
- Defined in:
- lib/webpay/data_types.rb
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Entity
#normalize_hash, #to_h, #to_s
Constructor Details
Returns a new instance of RecursionResponse.
820
821
822
823
824
|
# File 'lib/webpay/data_types.rb', line 820
def initialize(hash = {})
hash = normalize_hash(hash)
hash['deleted'] ||= false
@attributes = hash
end
|
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
813
814
815
|
# File 'lib/webpay/data_types.rb', line 813
def attributes
@attributes
end
|
Class Method Details
.fields ⇒ Object
815
816
817
|
# File 'lib/webpay/data_types.rb', line 815
def self.fields
['id', 'object', 'livemode', 'created', 'amount', 'currency', 'period', 'description', 'customer', 'shop', 'last_executed', 'next_scheduled', 'status', 'deleted']
end
|
Instance Method Details
#amount ⇒ Object
845
846
847
|
# File 'lib/webpay/data_types.rb', line 845
def amount
attributes['amount']
end
|
#created ⇒ Object
841
842
843
|
# File 'lib/webpay/data_types.rb', line 841
def created
attributes['created']
end
|
#currency ⇒ Object
849
850
851
|
# File 'lib/webpay/data_types.rb', line 849
def currency
attributes['currency']
end
|
#customer ⇒ Object
861
862
863
|
# File 'lib/webpay/data_types.rb', line 861
def customer
attributes['customer']
end
|
#deleted ⇒ Object
881
882
883
|
# File 'lib/webpay/data_types.rb', line 881
def deleted
attributes['deleted']
end
|
#description ⇒ Object
857
858
859
|
# File 'lib/webpay/data_types.rb', line 857
def description
attributes['description']
end
|
#id ⇒ Object
829
830
831
|
# File 'lib/webpay/data_types.rb', line 829
def id
attributes['id']
end
|
#last_executed ⇒ Object
869
870
871
|
# File 'lib/webpay/data_types.rb', line 869
def last_executed
attributes['last_executed']
end
|
#livemode ⇒ Object
837
838
839
|
# File 'lib/webpay/data_types.rb', line 837
def livemode
attributes['livemode']
end
|
#next_scheduled ⇒ Object
873
874
875
|
# File 'lib/webpay/data_types.rb', line 873
def next_scheduled
attributes['next_scheduled']
end
|
#object ⇒ Object
833
834
835
|
# File 'lib/webpay/data_types.rb', line 833
def object
attributes['object']
end
|
#period ⇒ Object
853
854
855
|
# File 'lib/webpay/data_types.rb', line 853
def period
attributes['period']
end
|
#shop ⇒ Object
865
866
867
|
# File 'lib/webpay/data_types.rb', line 865
def shop
attributes['shop']
end
|
#status ⇒ Object
877
878
879
|
# File 'lib/webpay/data_types.rb', line 877
def status
attributes['status']
end
|