class Pohoda::Parsers::Inv::IntrastatType

Public Instance Methods

mode_of_transport() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_type.rb, line 55
def mode_of_transport
  at 'inv:modeOfTransport'
end
mode_of_transport_attributes() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_type.rb, line 59
def mode_of_transport_attributes
  attributes_at 'inv:modeOfTransport'
end
region() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_type.rb, line 23
def region
  at 'inv:region'
end
region_attributes() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_type.rb, line 27
def region_attributes
  attributes_at 'inv:region'
end
shipping_costs() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_type.rb, line 63
def shipping_costs
  at 'inv:shippingCosts'
end
shipping_costs_attributes() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_type.rb, line 67
def shipping_costs_attributes
  attributes_at 'inv:shippingCosts'
end
special_transaction() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_type.rb, line 39
def special_transaction
  at 'inv:specialTransaction'
end
special_transaction_attributes() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_type.rb, line 43
def special_transaction_attributes
  attributes_at 'inv:specialTransaction'
end
state() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_type.rb, line 7
def state
  at 'inv:state'
end
state_attributes() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_type.rb, line 11
def state_attributes
  attributes_at 'inv:state'
end
state_of_origin() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_type.rb, line 15
def state_of_origin
  at 'inv:stateOfOrigin'
end
state_of_origin_attributes() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_type.rb, line 19
def state_of_origin_attributes
  attributes_at 'inv:stateOfOrigin'
end
terms_of_delivery() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_type.rb, line 47
def terms_of_delivery
  at 'inv:termsOfDelivery'
end
terms_of_delivery_attributes() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_type.rb, line 51
def terms_of_delivery_attributes
  attributes_at 'inv:termsOfDelivery'
end
to_h() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_type.rb, line 71
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:state] = state if has? 'inv:state'
  hash[:state_attributes] = state_attributes if has? 'inv:state'
  hash[:state_of_origin] = state_of_origin if has? 'inv:stateOfOrigin'
  hash[:state_of_origin_attributes] = state_of_origin_attributes if has? 'inv:stateOfOrigin'
  hash[:region] = region if has? 'inv:region'
  hash[:region_attributes] = region_attributes if has? 'inv:region'
  hash[:transaction] = transaction if has? 'inv:transaction'
  hash[:transaction_attributes] = transaction_attributes if has? 'inv:transaction'
  hash[:special_transaction] = special_transaction if has? 'inv:specialTransaction'
  hash[:special_transaction_attributes] = special_transaction_attributes if has? 'inv:specialTransaction'
  hash[:terms_of_delivery] = terms_of_delivery if has? 'inv:termsOfDelivery'
  hash[:terms_of_delivery_attributes] = terms_of_delivery_attributes if has? 'inv:termsOfDelivery'
  hash[:mode_of_transport] = mode_of_transport if has? 'inv:modeOfTransport'
  hash[:mode_of_transport_attributes] = mode_of_transport_attributes if has? 'inv:modeOfTransport'
  hash[:shipping_costs] = shipping_costs if has? 'inv:shippingCosts'
  hash[:shipping_costs_attributes] = shipping_costs_attributes if has? 'inv:shippingCosts'

  hash
end
transaction() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_type.rb, line 31
def transaction
  at 'inv:transaction'
end
transaction_attributes() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_type.rb, line 35
def transaction_attributes
  attributes_at 'inv:transaction'
end