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.



820
821
822
823
824
# File 'lib/webpay/data_types.rb', line 820

def initialize(hash = {})
  hash = normalize_hash(hash)
  hash['deleted'] ||= false
  @attributes = hash
end

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



813
814
815
# File 'lib/webpay/data_types.rb', line 813

def attributes
  @attributes
end

Class Method Details

.fieldsObject



815
816
817
# File 'lib/webpay/data_types.rb', line 815

def self.fields
  ['id', 'object', 'livemode', 'created', 'amount', 'currency', 'period', 'description', 'customer', 'shop', 'last_executed', 'next_scheduled', 'status', 'deleted']
end

Instance Method Details

#amountObject



845
846
847
# File 'lib/webpay/data_types.rb', line 845

def amount
  attributes['amount']
end

#createdObject



841
842
843
# File 'lib/webpay/data_types.rb', line 841

def created
  attributes['created']
end

#currencyObject



849
850
851
# File 'lib/webpay/data_types.rb', line 849

def currency
  attributes['currency']
end

#customerObject



861
862
863
# File 'lib/webpay/data_types.rb', line 861

def customer
  attributes['customer']
end

#deletedObject



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

def deleted
  attributes['deleted']
end

#descriptionObject



857
858
859
# File 'lib/webpay/data_types.rb', line 857

def description
  attributes['description']
end

#idObject

attributes accessors



829
830
831
# File 'lib/webpay/data_types.rb', line 829

def id
  attributes['id']
end

#last_executedObject



869
870
871
# File 'lib/webpay/data_types.rb', line 869

def last_executed
  attributes['last_executed']
end

#livemodeObject



837
838
839
# File 'lib/webpay/data_types.rb', line 837

def livemode
  attributes['livemode']
end

#next_scheduledObject



873
874
875
# File 'lib/webpay/data_types.rb', line 873

def next_scheduled
  attributes['next_scheduled']
end

#objectObject



833
834
835
# File 'lib/webpay/data_types.rb', line 833

def object
  attributes['object']
end

#periodObject



853
854
855
# File 'lib/webpay/data_types.rb', line 853

def period
  attributes['period']
end

#shopObject



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

def shop
  attributes['shop']
end

#statusObject



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

def status
  attributes['status']
end