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.
959
960
961
962
963
|
# File 'lib/webpay/data_types.rb', line 959
def initialize(hash = {})
hash = normalize_hash(hash)
hash['deleted'] ||= false
@attributes = hash
end
|
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
952
953
954
|
# File 'lib/webpay/data_types.rb', line 952
def attributes
@attributes
end
|
Class Method Details
.fields ⇒ Object
954
955
956
|
# File 'lib/webpay/data_types.rb', line 954
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
984
985
986
|
# File 'lib/webpay/data_types.rb', line 984
def amount
attributes['amount']
end
|
#created ⇒ Object
980
981
982
|
# File 'lib/webpay/data_types.rb', line 980
def created
attributes['created']
end
|
#currency ⇒ Object
988
989
990
|
# File 'lib/webpay/data_types.rb', line 988
def currency
attributes['currency']
end
|
#customer ⇒ Object
1000
1001
1002
|
# File 'lib/webpay/data_types.rb', line 1000
def customer
attributes['customer']
end
|
#deleted ⇒ Object
1020
1021
1022
|
# File 'lib/webpay/data_types.rb', line 1020
def deleted
attributes['deleted']
end
|
#description ⇒ Object
996
997
998
|
# File 'lib/webpay/data_types.rb', line 996
def description
attributes['description']
end
|
#id ⇒ Object
968
969
970
|
# File 'lib/webpay/data_types.rb', line 968
def id
attributes['id']
end
|
#last_executed ⇒ Object
1008
1009
1010
|
# File 'lib/webpay/data_types.rb', line 1008
def last_executed
attributes['last_executed']
end
|
#livemode ⇒ Object
976
977
978
|
# File 'lib/webpay/data_types.rb', line 976
def livemode
attributes['livemode']
end
|
#next_scheduled ⇒ Object
1012
1013
1014
|
# File 'lib/webpay/data_types.rb', line 1012
def next_scheduled
attributes['next_scheduled']
end
|
#object ⇒ Object
972
973
974
|
# File 'lib/webpay/data_types.rb', line 972
def object
attributes['object']
end
|
#period ⇒ Object
992
993
994
|
# File 'lib/webpay/data_types.rb', line 992
def period
attributes['period']
end
|
#shop ⇒ Object
1004
1005
1006
|
# File 'lib/webpay/data_types.rb', line 1004
def shop
attributes['shop']
end
|
#status ⇒ Object
1016
1017
1018
|
# File 'lib/webpay/data_types.rb', line 1016
def status
attributes['status']
end
|