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.



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

#attributesObject (readonly)

Returns the value of attribute attributes.



878
879
880
# File 'lib/webpay/data_types.rb', line 878

def attributes
  @attributes
end

Class Method Details

.fieldsObject



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

#amountObject



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

def amount
  attributes['amount']
end

#createdObject



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

def created
  attributes['created']
end

#currencyObject



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

def currency
  attributes['currency']
end

#customerObject



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

def customer
  attributes['customer']
end

#deletedObject



946
947
948
# File 'lib/webpay/data_types.rb', line 946

def deleted
  attributes['deleted']
end

#descriptionObject



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

def description
  attributes['description']
end

#idObject

attributes accessors



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

def id
  attributes['id']
end

#last_executedObject



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

def last_executed
  attributes['last_executed']
end

#livemodeObject



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

def livemode
  attributes['livemode']
end

#next_scheduledObject



938
939
940
# File 'lib/webpay/data_types.rb', line 938

def next_scheduled
  attributes['next_scheduled']
end

#objectObject



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

def object
  attributes['object']
end

#periodObject



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

def period
  attributes['period']
end

#shopObject



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

def shop
  attributes['shop']
end

#statusObject



942
943
944
# File 'lib/webpay/data_types.rb', line 942

def status
  attributes['status']
end