Class: WebPay::ShopResponse

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 = {}) ⇒ ShopResponse

Returns a new instance of ShopResponse.



1698
1699
1700
1701
# File 'lib/webpay/data_types.rb', line 1698

def initialize(hash = {})
  hash = normalize_hash(hash)
  @attributes = hash
end

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



1691
1692
1693
# File 'lib/webpay/data_types.rb', line 1691

def attributes
  @attributes
end

Class Method Details

.fieldsObject



1693
1694
1695
# File 'lib/webpay/data_types.rb', line 1693

def self.fields
  ['id', 'object', 'livemode', 'status', 'description', 'access_key', 'created', 'statement_descriptor', 'card_types_supported', 'details']
end

Instance Method Details

#access_keyObject



1726
1727
1728
# File 'lib/webpay/data_types.rb', line 1726

def access_key
  attributes['access_key']
end

#card_types_supportedObject



1738
1739
1740
# File 'lib/webpay/data_types.rb', line 1738

def card_types_supported
  attributes['card_types_supported']
end

#createdObject



1730
1731
1732
# File 'lib/webpay/data_types.rb', line 1730

def created
  attributes['created']
end

#descriptionObject



1722
1723
1724
# File 'lib/webpay/data_types.rb', line 1722

def description
  attributes['description']
end

#detailsObject



1742
1743
1744
# File 'lib/webpay/data_types.rb', line 1742

def details
  attributes['details']
end

#idObject

attributes accessors



1706
1707
1708
# File 'lib/webpay/data_types.rb', line 1706

def id
  attributes['id']
end

#livemodeObject



1714
1715
1716
# File 'lib/webpay/data_types.rb', line 1714

def livemode
  attributes['livemode']
end

#objectObject



1710
1711
1712
# File 'lib/webpay/data_types.rb', line 1710

def object
  attributes['object']
end

#statement_descriptorObject



1734
1735
1736
# File 'lib/webpay/data_types.rb', line 1734

def statement_descriptor
  attributes['statement_descriptor']
end

#statusObject



1718
1719
1720
# File 'lib/webpay/data_types.rb', line 1718

def status
  attributes['status']
end