class StocksInfo::Stocktwits
Attributes
url[RW]
Public Class Methods
new(ticker)
click to toggle source
# File lib/stocks-info/stocktwits.rb, line 5 def initialize(ticker) @url = "https://stocktwits.com/symbol/#{ticker}" @trending_url = "https://api.stocktwits.com/api/2/trending/symbols.json" @trending_tickers = [] end
trending_tickers()
click to toggle source
# File lib/stocks-info/stocktwits.rb, line 18 def self.trending_tickers @@trending_tickers end
trending_url()
click to toggle source
# File lib/stocks-info/stocktwits.rb, line 14 def self.trending_url @@trending_url end