Class: Io::Flow::V0::Models::LocalizedItemPricesExportType
- Inherits:
-
ExportType
- Object
- ExportType
- Io::Flow::V0::Models::LocalizedItemPricesExportType
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Overview
Exports localized item prices data
Instance Attribute Summary collapse
-
#since ⇒ Object
readonly
Returns the value of attribute since.
Attributes inherited from ExportType
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ LocalizedItemPricesExportType
constructor
A new instance of LocalizedItemPricesExportType.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from ExportType
Constructor Details
#initialize(incoming = {}) ⇒ LocalizedItemPricesExportType
Returns a new instance of LocalizedItemPricesExportType.
49077 49078 49079 49080 49081 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 49077 def initialize(incoming={}) super(:discriminator => ExportType::Types::LOCALIZED_ITEM_PRICES_EXPORT_TYPE) opts = HttpClient::Helper.symbolize_keys(incoming) @since = (x = opts.delete(:since); x.nil? ? nil : HttpClient::Preconditions.assert_class('since', HttpClient::Helper.to_date_time_iso8601(x), DateTime)) end |
Instance Attribute Details
#since ⇒ Object (readonly)
Returns the value of attribute since.
49075 49076 49077 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 49075 def since @since end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
49087 49088 49089 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 49087 def copy(incoming={}) LocalizedItemPricesExportType.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
49091 49092 49093 49094 49095 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 49091 def subtype_to_hash { :since => since } end |
#to_json ⇒ Object
49083 49084 49085 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 49083 def to_json JSON.dump(to_hash) end |