module StockMarkit

Provides the Version Constant

Author

Michael Heijmans (parabuzzle@gmail.com)

Copyright

Copyright © 2016 Michael Heijmans

License

MIT

Constants

VERSION

Public Class Methods

lookup(symbol) click to toggle source

Uses the lookup service to find stocks with the given symbol @param [String, Symbol] symbol The ticker symbol to lookup @return [Array<StockMarkit::Stock>] An Array of Stock Objects that match the given symbol @see StockMarkit::Lookup

# File lib/stock-markit.rb, line 32
def self.lookup(symbol)
  Lookup.new(symbol).fetch
end
quote(symbol) click to toggle source

Uses the quote service to get a quote for the given symbol @param [String, Symbol] symbol The ticker symbol to lookup @return [StockMarkit::Quote] A populated quote object @see StockMarkit::Quote

# File lib/stock-markit.rb, line 41
def self.quote(symbol)
  Quote.new(symbol).fetch
end
require_lib(lib) click to toggle source

require library file that was passed @param [String] lib Library path to require

# File lib/stock-markit.rb, line 15
def self.require_lib(lib)
  require lib
end
require_libs(libs) click to toggle source

Iterates through the passed in array of library paths and requires each of them @param [Array] libs Array of libraries to require

# File lib/stock-markit.rb, line 22
def self.require_libs(libs)
  libs.each do |lib|
    self.require_lib(lib)
  end
end