class YFi::Quote

Attributes

issuer_name[RW]
price[RW]
ticker[RW]
updated_at[RW]

Public Class Methods

find_by_ticker(ticker) click to toggle source

@param ticker [String] @example Api::ExternalFund.find_by_ticker('AAPL') @return [Api::ExternalFund]

# File lib/y_fi/quote.rb, line 18
def self.find_by_ticker(ticker)
  QuoteCollection.new([ticker]).first
end
new(args) click to toggle source
# File lib/y_fi/quote.rb, line 8
def initialize(args)
  args.each do |key, val|
    self.public_send("#{key}=", val)
  end
  self.ticker = self.ticker.to_s.upcase
end