Sha256: 06650680d5251e28f91277c2ad86e330aa1b4f0e6507047b084ff1d53392ed10

Contents?: true

Size: 719 Bytes

Versions: 5

Compression:

Stored size: 719 Bytes

Contents

# frozen_string_literal: true
require 'happymapper'
require_relative './node'
require_relative './source'
require_relative './context'
require_relative './content'
require_relative './status_info'
require_relative './rixml_type/yes_no_boolean'

module RixmlDocument
  class Product < Node
    include HappyMapper
    tag 'Product'

    has_many :status_infos, StatusInfo, tag: 'StatusInfo', xpath: './'
    has_one :source, Source, tag: 'Source', xpath: './'
    has_one :context, Context, tag: 'Context', xpath: './'
    has_one :content, Content, tag: 'Content', xpath: './'

    attribute :product_id, String, tag: 'productID'
    attribute :event_indicator, RixmlType::YesNoBoolean, tag: 'eventIndicator'
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rixml-0.5.6 lib/rixml_document/product.rb
rixml-0.5.5 lib/rixml_document/product.rb
rixml-0.5.4 lib/rixml_document/product.rb
rixml-0.5.3 lib/rixml_document/product.rb
rixml-0.5.2 lib/rixml_document/product.rb