Class: Epages::Sales
Constant Summary collapse
- KEYS =
%w(currency total_gross_revenue total_net_revenue units_sold total_orders).collect(&:to_sym).freeze
Instance Method Summary collapse
-
#initialize(data) ⇒ Sales
constructor
A new instance of Sales.
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) ⇒ Sales
Returns a new instance of Sales.
12 13 14 |
# File 'lib/epages/sales.rb', line 12 def initialize(data) parse_attributes(data) end |