Class: WebPay::EventResponseList
- Inherits:
-
Entity
- Object
- Entity
- WebPay::EventResponseList
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
Returns a new instance of EventResponseList.
1628
1629
1630
1631
1632
|
# File 'lib/webpay/data_types.rb', line 1628
def initialize(hash = {})
hash = normalize_hash(hash)
hash['data'] = hash['data'].is_a?(Array) ? hash['data'].map { |x| WebPay::EventResponse.new(x) if x.is_a?(Hash) } : hash['data']
@attributes = hash
end
|
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
1621
1622
1623
|
# File 'lib/webpay/data_types.rb', line 1621
def attributes
@attributes
end
|
Class Method Details
.fields ⇒ Object
1623
1624
1625
|
# File 'lib/webpay/data_types.rb', line 1623
def self.fields
['object', 'url', 'count', 'data']
end
|
Instance Method Details
#count ⇒ Object
1645
1646
1647
|
# File 'lib/webpay/data_types.rb', line 1645
def count
attributes['count']
end
|
#data ⇒ Object
1649
1650
1651
|
# File 'lib/webpay/data_types.rb', line 1649
def data
attributes['data']
end
|
#object ⇒ Object
1637
1638
1639
|
# File 'lib/webpay/data_types.rb', line 1637
def object
attributes['object']
end
|
#url ⇒ Object
1641
1642
1643
|
# File 'lib/webpay/data_types.rb', line 1641
def url
attributes['url']
end
|