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.
885
886
887
888
889
|
# File 'lib/webpay/data_types.rb', line 885
def initialize(hash = {})
hash = normalize_hash(hash)
hash['deleted'] ||= false
@attributes = hash
end
|
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
878
879
880
|
# File 'lib/webpay/data_types.rb', line 878
def attributes
@attributes
end
|
Class Method Details
.fields ⇒ Object
880
881
882
|
# File 'lib/webpay/data_types.rb', line 880
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
910
911
912
|
# File 'lib/webpay/data_types.rb', line 910
def amount
attributes['amount']
end
|
#created ⇒ Object
906
907
908
|
# File 'lib/webpay/data_types.rb', line 906
def created
attributes['created']
end
|
#currency ⇒ Object
914
915
916
|
# File 'lib/webpay/data_types.rb', line 914
def currency
attributes['currency']
end
|
#customer ⇒ Object
926
927
928
|
# File 'lib/webpay/data_types.rb', line 926
def customer
attributes['customer']
end
|
#deleted ⇒ Object
946
947
948
|
# File 'lib/webpay/data_types.rb', line 946
def deleted
attributes['deleted']
end
|
#description ⇒ Object
922
923
924
|
# File 'lib/webpay/data_types.rb', line 922
def description
attributes['description']
end
|
#id ⇒ Object
894
895
896
|
# File 'lib/webpay/data_types.rb', line 894
def id
attributes['id']
end
|
#last_executed ⇒ Object
934
935
936
|
# File 'lib/webpay/data_types.rb', line 934
def last_executed
attributes['last_executed']
end
|
#livemode ⇒ Object
902
903
904
|
# File 'lib/webpay/data_types.rb', line 902
def livemode
attributes['livemode']
end
|
#next_scheduled ⇒ Object
938
939
940
|
# File 'lib/webpay/data_types.rb', line 938
def next_scheduled
attributes['next_scheduled']
end
|
#object ⇒ Object
898
899
900
|
# File 'lib/webpay/data_types.rb', line 898
def object
attributes['object']
end
|
#period ⇒ Object
918
919
920
|
# File 'lib/webpay/data_types.rb', line 918
def period
attributes['period']
end
|
#shop ⇒ Object
930
931
932
|
# File 'lib/webpay/data_types.rb', line 930
def shop
attributes['shop']
end
|
#status ⇒ Object
942
943
944
|
# File 'lib/webpay/data_types.rb', line 942
def status
attributes['status']
end
|