Class: WebPay::ShopResponseList
- Inherits:
-
Entity
- Object
- Entity
- WebPay::ShopResponseList
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 ShopResponseList.
1942
1943
1944
1945
1946
|
# File 'lib/webpay/data_types.rb', line 1942
def initialize(hash = {})
hash = normalize_hash(hash)
hash['data'] = hash['data'].is_a?(Array) ? hash['data'].map { |x| WebPay::ShopResponse.new(x) if x.is_a?(Hash) } : hash['data']
@attributes = hash
end
|
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
1935
1936
1937
|
# File 'lib/webpay/data_types.rb', line 1935
def attributes
@attributes
end
|
Class Method Details
.fields ⇒ Object
1937
1938
1939
|
# File 'lib/webpay/data_types.rb', line 1937
def self.fields
['object', 'url', 'count', 'data']
end
|
Instance Method Details
#count ⇒ Object
1959
1960
1961
|
# File 'lib/webpay/data_types.rb', line 1959
def count
attributes['count']
end
|
#data ⇒ Object
1963
1964
1965
|
# File 'lib/webpay/data_types.rb', line 1963
def data
attributes['data']
end
|
#object ⇒ Object
1951
1952
1953
|
# File 'lib/webpay/data_types.rb', line 1951
def object
attributes['object']
end
|
#url ⇒ Object
1955
1956
1957
|
# File 'lib/webpay/data_types.rb', line 1955
def url
attributes['url']
end
|