class Pohoda::Parsers::Stk::StockItemType2

Public Instance Methods

stock_price_item() click to toggle source
# File lib/pohoda/parsers/stk/stock_item_type2.rb, line 8
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/stock_item_type2.rb, line 12
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:stock_price_item] = stock_price_item.map(&:to_h) if has? 'stk:stockPriceItem'

  mega.inject(hash) { |memo, r| memo.merge r }
end