class Pohoda::Parsers::Stk::StockPriceItemType

Public Instance Methods

stock_price() click to toggle source
# File lib/pohoda/parsers/stk/stock_price_item_type.rb, line 7
def stock_price
  array_of_at(Typ::StockPriceType, ['stk:stockPrice'])
end
to_h() click to toggle source
# File lib/pohoda/parsers/stk/stock_price_item_type.rb, line 11
def to_h
  hash = {}
  hash[:attributes] = attributes

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

  hash
end