class Pohoda::Parsers::Stk::AttachItemType
Public Instance Methods
edit()
click to toggle source
# File lib/pohoda/parsers/stk/attach_item_type.rb, line 24 def edit at 'stk:edit' end
edit_attributes()
click to toggle source
# File lib/pohoda/parsers/stk/attach_item_type.rb, line 28 def edit_attributes attributes_at 'stk:edit' end
not_expedite()
click to toggle source
# File lib/pohoda/parsers/stk/attach_item_type.rb, line 16 def not_expedite at 'stk:notExpedite' end
not_expedite_attributes()
click to toggle source
# File lib/pohoda/parsers/stk/attach_item_type.rb, line 20 def not_expedite_attributes attributes_at 'stk:notExpedite' end
stock_price_item()
click to toggle source
# File lib/pohoda/parsers/stk/attach_item_type.rb, line 32 def stock_price_item array_of_at(Typ::StockPriceType, ['stk:stockPriceItem', 'stk:stockPrice']) end
to_h()
click to toggle source
# File lib/pohoda/parsers/stk/attach_item_type.rb, line 36 def to_h hash = {} hash[:attributes] = attributes hash[:warehouse] = warehouse if has? 'stk:warehouse' hash[:warehouse_attributes] = warehouse_attributes if has? 'stk:warehouse' hash[:not_expedite] = not_expedite if has? 'stk:notExpedite' hash[:not_expedite_attributes] = not_expedite_attributes if has? 'stk:notExpedite' hash[:edit] = edit if has? 'stk:edit' hash[:edit_attributes] = edit_attributes if has? 'stk:edit' hash[:stock_price_item] = stock_price_item.map(&:to_h) if has? 'stk:stockPriceItem' mega.inject(hash) { |memo, r| memo.merge r } end
warehouse()
click to toggle source
# File lib/pohoda/parsers/stk/attach_item_type.rb, line 8 def warehouse at 'stk:warehouse' end
warehouse_attributes()
click to toggle source
# File lib/pohoda/parsers/stk/attach_item_type.rb, line 12 def warehouse_attributes attributes_at 'stk:warehouse' end