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.
872
873
874
875
876
|
# File 'lib/webpay/data_types.rb', line 872
def initialize(hash = {})
hash = normalize_hash(hash)
hash['deleted'] ||= false
@attributes = hash
end
|
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
865
866
867
|
# File 'lib/webpay/data_types.rb', line 865
def attributes
@attributes
end
|
Class Method Details
.fields ⇒ Object
867
868
869
|
# File 'lib/webpay/data_types.rb', line 867
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
897
898
899
|
# File 'lib/webpay/data_types.rb', line 897
def amount
attributes['amount']
end
|
#created ⇒ Object
893
894
895
|
# File 'lib/webpay/data_types.rb', line 893
def created
attributes['created']
end
|
#currency ⇒ Object
901
902
903
|
# File 'lib/webpay/data_types.rb', line 901
def currency
attributes['currency']
end
|
#customer ⇒ Object
913
914
915
|
# File 'lib/webpay/data_types.rb', line 913
def customer
attributes['customer']
end
|
#deleted ⇒ Object
933
934
935
|
# File 'lib/webpay/data_types.rb', line 933
def deleted
attributes['deleted']
end
|
#description ⇒ Object
909
910
911
|
# File 'lib/webpay/data_types.rb', line 909
def description
attributes['description']
end
|
#id ⇒ Object
881
882
883
|
# File 'lib/webpay/data_types.rb', line 881
def id
attributes['id']
end
|
#last_executed ⇒ Object
921
922
923
|
# File 'lib/webpay/data_types.rb', line 921
def last_executed
attributes['last_executed']
end
|
#livemode ⇒ Object
889
890
891
|
# File 'lib/webpay/data_types.rb', line 889
def livemode
attributes['livemode']
end
|
#next_scheduled ⇒ Object
925
926
927
|
# File 'lib/webpay/data_types.rb', line 925
def next_scheduled
attributes['next_scheduled']
end
|
#object ⇒ Object
885
886
887
|
# File 'lib/webpay/data_types.rb', line 885
def object
attributes['object']
end
|
#period ⇒ Object
905
906
907
|
# File 'lib/webpay/data_types.rb', line 905
def period
attributes['period']
end
|
#shop ⇒ Object
917
918
919
|
# File 'lib/webpay/data_types.rb', line 917
def shop
attributes['shop']
end
|
#status ⇒ Object
929
930
931
|
# File 'lib/webpay/data_types.rb', line 929
def status
attributes['status']
end
|