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.
1544
1545
1546
1547
1548
|
# File 'lib/webpay/data_types.rb', line 1544
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.
1537
1538
1539
|
# File 'lib/webpay/data_types.rb', line 1537
def attributes
@attributes
end
|
Class Method Details
.fields ⇒ Object
1539
1540
1541
|
# File 'lib/webpay/data_types.rb', line 1539
def self.fields
['object', 'url', 'count', 'data']
end
|
Instance Method Details
#count ⇒ Object
1561
1562
1563
|
# File 'lib/webpay/data_types.rb', line 1561
def count
attributes['count']
end
|
#data ⇒ Object
1565
1566
1567
|
# File 'lib/webpay/data_types.rb', line 1565
def data
attributes['data']
end
|
#object ⇒ Object
1553
1554
1555
|
# File 'lib/webpay/data_types.rb', line 1553
def object
attributes['object']
end
|
#url ⇒ Object
1557
1558
1559
|
# File 'lib/webpay/data_types.rb', line 1557
def url
attributes['url']
end
|