class Pohoda::Parsers::Typ::LinkToStockType
Public Instance Methods
ext_id()
click to toggle source
# File lib/pohoda/parsers/typ/link_to_stock_type.rb, line 15 def ext_id submodel_at(Typ::ExtIdType, 'typ:extId') end
id()
click to toggle source
# File lib/pohoda/parsers/typ/link_to_stock_type.rb, line 7 def id at 'typ:id' end
id_attributes()
click to toggle source
# File lib/pohoda/parsers/typ/link_to_stock_type.rb, line 11 def id_attributes attributes_at 'typ:id' end
to_h()
click to toggle source
# File lib/pohoda/parsers/typ/link_to_stock_type.rb, line 19 def to_h hash = {} hash[:attributes] = attributes hash[:id] = id if has? 'typ:id' hash[:id_attributes] = id_attributes if has? 'typ:id' hash[:ext_id] = ext_id.to_h if has? 'typ:extId' hash end