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.



1633
1634
1635
1636
# File 'lib/webpay/data_types.rb', line 1633

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

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



1626
1627
1628
# File 'lib/webpay/data_types.rb', line 1626

def attributes
  @attributes
end

Class Method Details

.fieldsObject



1628
1629
1630
# File 'lib/webpay/data_types.rb', line 1628

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

Instance Method Details

#access_keyObject



1661
1662
1663
# File 'lib/webpay/data_types.rb', line 1661

def access_key
  attributes['access_key']
end

#card_types_supportedObject



1673
1674
1675
# File 'lib/webpay/data_types.rb', line 1673

def card_types_supported
  attributes['card_types_supported']
end

#createdObject



1665
1666
1667
# File 'lib/webpay/data_types.rb', line 1665

def created
  attributes['created']
end

#descriptionObject



1657
1658
1659
# File 'lib/webpay/data_types.rb', line 1657

def description
  attributes['description']
end

#detailsObject



1677
1678
1679
# File 'lib/webpay/data_types.rb', line 1677

def details
  attributes['details']
end

#idObject

attributes accessors



1641
1642
1643
# File 'lib/webpay/data_types.rb', line 1641

def id
  attributes['id']
end

#livemodeObject



1649
1650
1651
# File 'lib/webpay/data_types.rb', line 1649

def livemode
  attributes['livemode']
end

#objectObject



1645
1646
1647
# File 'lib/webpay/data_types.rb', line 1645

def object
  attributes['object']
end

#statement_descriptorObject



1669
1670
1671
# File 'lib/webpay/data_types.rb', line 1669

def statement_descriptor
  attributes['statement_descriptor']
end

#statusObject



1653
1654
1655
# File 'lib/webpay/data_types.rb', line 1653

def status
  attributes['status']
end