Class: Epages::SalesSummary
- Inherits:
-
Object
- Object
- Epages::SalesSummary
- Includes:
- Utils
- Defined in:
- lib/epages/sales_summary.rb
Constant Summary collapse
- KEYS =
%w(created_after created_before sales_per_currency).collect(&:to_sym).freeze
Instance Method Summary collapse
-
#initialize(data) ⇒ SalesSummary
constructor
A new instance of SalesSummary.
Methods included from Utils
build_shop_from, camelize_keys, camelize_words, options_to_multipart_request, options_to_patch_request, parse_attribute_as, parse_attribute_as_array_of, parse_attributes, symbolize_keys!, to_query_options, underscorize_keys
Constructor Details
#initialize(data) ⇒ SalesSummary
Returns a new instance of SalesSummary.
12 13 14 15 |
# File 'lib/epages/sales_summary.rb', line 12 def initialize(data) parse_attribute_as_array_of(:salesPerCurrency, data.delete(:salesPerCurrency), Epages::Sales) parse_attributes(data) end |