Sha256: 7cd58f5f7b5de3a24d413a7d9bc5bee6fabc09b71af55ca7d82f3e076b5d2e58

Contents?: true

Size: 767 Bytes

Versions: 6

Compression:

Stored size: 767 Bytes

Contents

# frozen_string_literal: true
require 'happymapper'
require_relative './node'
require_relative './issuer'
require_relative './product_details'
require_relative './product_classifications'
require_relative './rixml_type/yes_no_boolean'

module RixmlDocument
  class IssuerDetails < Node
    include HappyMapper
    tag 'IssuerDetails'
    has_many :issuers, Issuer, tag: 'Issuer', xpath: './'
  end

  class Context < Node
    include HappyMapper
    tag 'Context'

    has_one :issuer_details, IssuerDetails, xpath: './'
    has_one :product_details, ProductDetails, xpath: './'
    has_one :product_classifications, ProductClassifications, xpath: './'

    attribute :external, RixmlType::YesNoBoolean

    def issuers
      issuer_details.issuers
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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