Sha256: 614b2f19cea4aaff209102d192d255ecfe4923e46baccf4b2d45d3273db5c3d3

Contents?: true

Size: 687 Bytes

Versions: 2

Compression:

Stored size: 687 Bytes

Contents

require 'peddler/parsers/model'

module MWS
  module Sellers
    module Parsers
      class Marketplace < ::Peddler::Parsers::Model
        value(:id) do
          text_at_xpath('MarketplaceId')
        end

        value(:name) do
          text_at_xpath('Name')
        end

        value(:default_country_code) do
          text_at_xpath('DefaultCountryCode')
        end

        value(:default_currency_code) do
          text_at_xpath('DefaultCurrencyCode')
        end

        value(:default_language_code) do
          text_at_xpath('DefaultLanguageCode')
        end

        value(:domain_name) do
          text_at_xpath('DomainName')
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
peddler-0.6.5 lib/mws/sellers/parsers/marketplace.rb
peddler-0.6.4 lib/mws/sellers/parsers/marketplace.rb