Class: BTCT::Ticker

Inherits:
Object
  • Object
show all
Defined in:
lib/btct/ticker.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Ticker



5
6
7
# File 'lib/btct/ticker.rb', line 5

def initialize(args)
  args.each { |k, v| instance_variable_set("@#{k}", v) unless v.nil? }
end

Instance Attribute Details

#exchangeObject (readonly)

Returns the value of attribute exchange.



3
4
5
# File 'lib/btct/ticker.rb', line 3

def exchange
  @exchange
end

#highObject (readonly)

Returns the value of attribute high.



3
4
5
# File 'lib/btct/ticker.rb', line 3

def high
  @high
end

#lastObject (readonly)

Returns the value of attribute last.



3
4
5
# File 'lib/btct/ticker.rb', line 3

def last
  @last
end

#lowObject (readonly)

Returns the value of attribute low.



3
4
5
# File 'lib/btct/ticker.rb', line 3

def low
  @low
end

#timeObject (readonly)

Returns the value of attribute time.



3
4
5
# File 'lib/btct/ticker.rb', line 3

def time
  @time
end

#volumeObject (readonly)

Returns the value of attribute volume.



3
4
5
# File 'lib/btct/ticker.rb', line 3

def volume
  @volume
end