class Flashboy::Quote
Attributes
ask[R]
bid[R]
exchange[R]
last[R]
pair[R]
volume[R]
Public Class Methods
new(data)
click to toggle source
# File lib/flashboy/quote.rb, line 5 def initialize(data) @exchange = data[:exchange].to_s @pair = data[:pair].to_s @bid = data[:bid].to_s.to_f @ask = data[:ask].to_s.to_f @last = data[:last].to_s.to_f @volume = data[:volume].to_s.to_f end