Sha256: 3c72eb7d570116984d05daa4830a50eb97284e8a5cd628992d3634626549f079

Contents?: true

Size: 560 Bytes

Versions: 2

Compression:

Stored size: 560 Bytes

Contents

require 'peddler/parsers/model'

module MWS
  module Reports
    module Parsers
      class ReportInfo < ::Peddler::Parsers::Model
        value :id do
          text_at_xpath('ReportId')
        end

        value :type do
          text_at_xpath('ReportType')
        end

        value :request_id do
          text_at_xpath('ReportRequestId')
        end

        value :available_at do
          time_at_xpath('AvailableDate')
        end

        value :acknowledged? do
          boolean_at_xpath('Acknowledged')
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
peddler-0.6.5 lib/mws/reports/parsers/report_info.rb
peddler-0.6.4 lib/mws/reports/parsers/report_info.rb