class Pohoda::Parsers::Inv::IntrastatItemType

Public Instance Methods

add_unit() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_item_type.rb, line 87
def add_unit
  at 'inv:addUnit'
end
add_unit_attributes() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_item_type.rb, line 91
def add_unit_attributes
  attributes_at 'inv:addUnit'
end
date() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_item_type.rb, line 7
def date
  at 'inv:date'
end
date_attributes() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_item_type.rb, line 11
def date_attributes
  attributes_at 'inv:date'
end
description() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_item_type.rb, line 23
def description
  at 'inv:description'
end
description_attributes() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_item_type.rb, line 27
def description_attributes
  attributes_at 'inv:description'
end
goods_code() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_item_type.rb, line 15
def goods_code
  at 'inv:goodsCode'
end
goods_code_attributes() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_item_type.rb, line 19
def goods_code_attributes
  attributes_at 'inv:goodsCode'
end
invoiced_amount() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_item_type.rb, line 55
def invoiced_amount
  at 'inv:invoicedAmount'
end
invoiced_amount_attributes() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_item_type.rb, line 59
def invoiced_amount_attributes
  attributes_at 'inv:invoicedAmount'
end
mode_of_transport() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_item_type.rb, line 111
def mode_of_transport
  at 'inv:modeOfTransport'
end
mode_of_transport_attributes() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_item_type.rb, line 115
def mode_of_transport_attributes
  attributes_at 'inv:modeOfTransport'
end
own_weight() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_item_type.rb, line 71
def own_weight
  at 'inv:ownWeight'
end
own_weight_attributes() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_item_type.rb, line 75
def own_weight_attributes
  attributes_at 'inv:ownWeight'
end
quantity() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_item_type.rb, line 79
def quantity
  at 'inv:quantity'
end
quantity_attributes() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_item_type.rb, line 83
def quantity_attributes
  attributes_at 'inv:quantity'
end
region() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_item_type.rb, line 39
def region
  at 'inv:region'
end
region_attributes() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_item_type.rb, line 43
def region_attributes
  attributes_at 'inv:region'
end
special_transaction() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_item_type.rb, line 127
def special_transaction
  at 'inv:specialTransaction'
end
special_transaction_attributes() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_item_type.rb, line 131
def special_transaction_attributes
  attributes_at 'inv:specialTransaction'
end
state() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_item_type.rb, line 31
def state
  at 'inv:state'
end
state_attributes() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_item_type.rb, line 35
def state_attributes
  attributes_at 'inv:state'
end
state_of_origin() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_item_type.rb, line 47
def state_of_origin
  at 'inv:stateOfOrigin'
end
state_of_origin_attributes() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_item_type.rb, line 51
def state_of_origin_attributes
  attributes_at 'inv:stateOfOrigin'
end
statistical_code() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_item_type.rb, line 119
def statistical_code
  at 'inv:statisticalCode'
end
statistical_code_attributes() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_item_type.rb, line 123
def statistical_code_attributes
  attributes_at 'inv:statisticalCode'
end
terms_of_delivery() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_item_type.rb, line 103
def terms_of_delivery
  at 'inv:termsOfDelivery'
end
terms_of_delivery_attributes() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_item_type.rb, line 107
def terms_of_delivery_attributes
  attributes_at 'inv:termsOfDelivery'
end
to_h() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_item_type.rb, line 135
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:date] = date if has? 'inv:date'
  hash[:date_attributes] = date_attributes if has? 'inv:date'
  hash[:goods_code] = goods_code if has? 'inv:goodsCode'
  hash[:goods_code_attributes] = goods_code_attributes if has? 'inv:goodsCode'
  hash[:description] = description if has? 'inv:description'
  hash[:description_attributes] = description_attributes if has? 'inv:description'
  hash[:state] = state if has? 'inv:state'
  hash[:state_attributes] = state_attributes if has? 'inv:state'
  hash[:region] = region if has? 'inv:region'
  hash[:region_attributes] = region_attributes if has? 'inv:region'
  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[:invoiced_amount] = invoiced_amount if has? 'inv:invoicedAmount'
  hash[:invoiced_amount_attributes] = invoiced_amount_attributes if has? 'inv:invoicedAmount'
  hash[:transport_expenses] = transport_expenses if has? 'inv:transportExpenses'
  hash[:transport_expenses_attributes] = transport_expenses_attributes if has? 'inv:transportExpenses'
  hash[:own_weight] = own_weight if has? 'inv:ownWeight'
  hash[:own_weight_attributes] = own_weight_attributes if has? 'inv:ownWeight'
  hash[:quantity] = quantity if has? 'inv:quantity'
  hash[:quantity_attributes] = quantity_attributes if has? 'inv:quantity'
  hash[:add_unit] = add_unit if has? 'inv:addUnit'
  hash[:add_unit_attributes] = add_unit_attributes if has? 'inv:addUnit'
  hash[:transaction] = transaction if has? 'inv:transaction'
  hash[:transaction_attributes] = transaction_attributes if has? 'inv:transaction'
  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[:statistical_code] = statistical_code if has? 'inv:statisticalCode'
  hash[:statistical_code_attributes] = statistical_code_attributes if has? 'inv:statisticalCode'
  hash[:special_transaction] = special_transaction if has? 'inv:specialTransaction'
  hash[:special_transaction_attributes] = special_transaction_attributes if has? 'inv:specialTransaction'

  hash
end
transaction() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_item_type.rb, line 95
def transaction
  at 'inv:transaction'
end
transaction_attributes() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_item_type.rb, line 99
def transaction_attributes
  attributes_at 'inv:transaction'
end
transport_expenses() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_item_type.rb, line 63
def transport_expenses
  at 'inv:transportExpenses'
end
transport_expenses_attributes() click to toggle source
# File lib/pohoda/parsers/inv/intrastat_item_type.rb, line 67
def transport_expenses_attributes
  attributes_at 'inv:transportExpenses'
end