class TickerFetcher::Stock

Attributes

industry[R]
last_sale[R]
market_cap[R]
name[R]
sector[R]
symbol[R]

Public Class Methods

new(data) click to toggle source
# File lib/ticker_fetcher/stock.rb, line 5
def initialize(data)
  @symbol = data['Symbol']
  @name = data['Name']
  @last_sale = data['LastSale']
  @market_cap = data['MarketCap']
  @sector = data['Sector']
  @industry = data['Industry']
end