Class: WebPay::RecursionResponse

Inherits:
Entity
  • Object
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

#initialize(hash = {}) ⇒ RecursionResponse

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

#attributesObject (readonly)

Returns the value of attribute attributes.



952
953
954
# File 'lib/webpay/data_types.rb', line 952

def attributes
  @attributes
end

Class Method Details

.fieldsObject



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

#amountObject



984
985
986
# File 'lib/webpay/data_types.rb', line 984

def amount
  attributes['amount']
end

#createdObject



980
981
982
# File 'lib/webpay/data_types.rb', line 980

def created
  attributes['created']
end

#currencyObject



988
989
990
# File 'lib/webpay/data_types.rb', line 988

def currency
  attributes['currency']
end

#customerObject



1000
1001
1002
# File 'lib/webpay/data_types.rb', line 1000

def customer
  attributes['customer']
end

#deletedObject



1020
1021
1022
# File 'lib/webpay/data_types.rb', line 1020

def deleted
  attributes['deleted']
end

#descriptionObject



996
997
998
# File 'lib/webpay/data_types.rb', line 996

def description
  attributes['description']
end

#idObject

attributes accessors



968
969
970
# File 'lib/webpay/data_types.rb', line 968

def id
  attributes['id']
end

#last_executedObject



1008
1009
1010
# File 'lib/webpay/data_types.rb', line 1008

def last_executed
  attributes['last_executed']
end

#livemodeObject



976
977
978
# File 'lib/webpay/data_types.rb', line 976

def livemode
  attributes['livemode']
end

#next_scheduledObject



1012
1013
1014
# File 'lib/webpay/data_types.rb', line 1012

def next_scheduled
  attributes['next_scheduled']
end

#objectObject



972
973
974
# File 'lib/webpay/data_types.rb', line 972

def object
  attributes['object']
end

#periodObject



992
993
994
# File 'lib/webpay/data_types.rb', line 992

def period
  attributes['period']
end

#shopObject



1004
1005
1006
# File 'lib/webpay/data_types.rb', line 1004

def shop
  attributes['shop']
end

#statusObject



1016
1017
1018
# File 'lib/webpay/data_types.rb', line 1016

def status
  attributes['status']
end