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.



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

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

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



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

def attributes
  @attributes
end

Class Method Details

.fieldsObject



1712
1713
1714
# File 'lib/webpay/data_types.rb', line 1712

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

Instance Method Details

#access_keyObject



1745
1746
1747
# File 'lib/webpay/data_types.rb', line 1745

def access_key
  attributes['access_key']
end

#card_types_supportedObject



1757
1758
1759
# File 'lib/webpay/data_types.rb', line 1757

def card_types_supported
  attributes['card_types_supported']
end

#createdObject



1749
1750
1751
# File 'lib/webpay/data_types.rb', line 1749

def created
  attributes['created']
end

#descriptionObject



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

def description
  attributes['description']
end

#detailsObject



1761
1762
1763
# File 'lib/webpay/data_types.rb', line 1761

def details
  attributes['details']
end

#idObject

attributes accessors



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

def id
  attributes['id']
end

#livemodeObject



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

def livemode
  attributes['livemode']
end

#objectObject



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

def object
  attributes['object']
end

#statement_descriptorObject



1753
1754
1755
# File 'lib/webpay/data_types.rb', line 1753

def statement_descriptor
  attributes['statement_descriptor']
end

#statusObject



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

def status
  attributes['status']
end