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.



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

#attributesObject (readonly)

Returns the value of attribute attributes.



865
866
867
# File 'lib/webpay/data_types.rb', line 865

def attributes
  @attributes
end

Class Method Details

.fieldsObject



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

#amountObject



897
898
899
# File 'lib/webpay/data_types.rb', line 897

def amount
  attributes['amount']
end

#createdObject



893
894
895
# File 'lib/webpay/data_types.rb', line 893

def created
  attributes['created']
end

#currencyObject



901
902
903
# File 'lib/webpay/data_types.rb', line 901

def currency
  attributes['currency']
end

#customerObject



913
914
915
# File 'lib/webpay/data_types.rb', line 913

def customer
  attributes['customer']
end

#deletedObject



933
934
935
# File 'lib/webpay/data_types.rb', line 933

def deleted
  attributes['deleted']
end

#descriptionObject



909
910
911
# File 'lib/webpay/data_types.rb', line 909

def description
  attributes['description']
end

#idObject

attributes accessors



881
882
883
# File 'lib/webpay/data_types.rb', line 881

def id
  attributes['id']
end

#last_executedObject



921
922
923
# File 'lib/webpay/data_types.rb', line 921

def last_executed
  attributes['last_executed']
end

#livemodeObject



889
890
891
# File 'lib/webpay/data_types.rb', line 889

def livemode
  attributes['livemode']
end

#next_scheduledObject



925
926
927
# File 'lib/webpay/data_types.rb', line 925

def next_scheduled
  attributes['next_scheduled']
end

#objectObject



885
886
887
# File 'lib/webpay/data_types.rb', line 885

def object
  attributes['object']
end

#periodObject



905
906
907
# File 'lib/webpay/data_types.rb', line 905

def period
  attributes['period']
end

#shopObject



917
918
919
# File 'lib/webpay/data_types.rb', line 917

def shop
  attributes['shop']
end

#statusObject



929
930
931
# File 'lib/webpay/data_types.rb', line 929

def status
  attributes['status']
end