Method: Fugle::Intraday::Meta#initialize
- Defined in:
- lib/fugle/intraday/meta.rb
#initialize(data) ⇒ Meta
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Meta.
28 29 30 31 32 33 34 35 36 |
# File 'lib/fugle/intraday/meta.rb', line 28 def initialize(data) load_boolean STATES, data, prefix: 'is' load_boolean PERMITS, data, prefix: 'can' @name = data['nameZhTw'] @industry = data['industryZhTw'] @type = data['typeZhTw'] @price = Price.new(data) end |