Class: Io::Flow::V0::Models::LocalizedItemPricesExportType

Inherits:
ExportType
  • Object
show all
Defined in:
lib/flow_commerce/flow_api_v0_client.rb

Overview

Exports localized item prices data

Instance Attribute Summary collapse

Attributes inherited from ExportType

#discriminator

Instance Method Summary collapse

Methods inherited from ExportType

from_json, #to_hash

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

#sinceObject (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_hashObject



49091
49092
49093
49094
49095
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 49091

def subtype_to_hash
  {
    :since => since
  }
end

#to_jsonObject



49083
49084
49085
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 49083

def to_json
  JSON.dump(to_hash)
end