class Pohoda::Parsers::Stk::StockType
Public Instance Methods
action_type()
click to toggle source
# File lib/pohoda/parsers/stk/stock_type.rb, line 7 def action_type submodel_at(Stk::ActionTypeType, 'stk:actionType') end
print()
click to toggle source
# File lib/pohoda/parsers/stk/stock_type.rb, line 31 def print array_of_at(Prn::PrinterSettingsType, ['stk:print', 'prn:printerSettings']) end
stock_attach()
click to toggle source
# File lib/pohoda/parsers/stk/stock_type.rb, line 19 def stock_attach array_of_at(Stk::AttachItemType, ['stk:stockAttach', 'stk:attachItem']) end
stock_detail()
click to toggle source
# File lib/pohoda/parsers/stk/stock_type.rb, line 15 def stock_detail array_of_at(Stk::StockItemType, ['stk:stockDetail', 'stk:stockItem']) end
stock_header()
click to toggle source
# File lib/pohoda/parsers/stk/stock_type.rb, line 11 def stock_header submodel_at(Stk::StockHeaderType, 'stk:stockHeader') end
stock_price_item()
click to toggle source
# File lib/pohoda/parsers/stk/stock_type.rb, line 27 def stock_price_item array_of_at(Typ::StockPriceType, ['stk:stockPriceItem', 'stk:stockPrice']) end
stock_serial_number()
click to toggle source
# File lib/pohoda/parsers/stk/stock_type.rb, line 23 def stock_serial_number array_of_at(Stk::SerialNumberItemType, ['stk:stockSerialNumber', 'stk:serialNumberItem']) end
to_h()
click to toggle source
# File lib/pohoda/parsers/stk/stock_type.rb, line 35 def to_h hash = {} hash[:attributes] = attributes hash[:action_type] = action_type.to_h if has? 'stk:actionType' hash[:stock_header] = stock_header.to_h if has? 'stk:stockHeader' hash[:stock_detail] = stock_detail.map(&:to_h) if has? 'stk:stockDetail' hash[:stock_attach] = stock_attach.map(&:to_h) if has? 'stk:stockAttach' hash[:stock_serial_number] = stock_serial_number.map(&:to_h) if has? 'stk:stockSerialNumber' hash[:stock_price_item] = stock_price_item.map(&:to_h) if has? 'stk:stockPriceItem' hash[:print] = print.map(&:to_h) if has? 'stk:print' hash end