Class: BTCT::Ticker
- Inherits:
-
Object
- Object
- BTCT::Ticker
- Defined in:
- lib/btct/ticker.rb
Instance Attribute Summary collapse
-
#exchange ⇒ Object
readonly
Returns the value of attribute exchange.
-
#high ⇒ Object
readonly
Returns the value of attribute high.
-
#last ⇒ Object
readonly
Returns the value of attribute last.
-
#low ⇒ Object
readonly
Returns the value of attribute low.
-
#time ⇒ Object
readonly
Returns the value of attribute time.
-
#volume ⇒ Object
readonly
Returns the value of attribute volume.
Instance Method Summary collapse
-
#initialize(args) ⇒ Ticker
constructor
A new instance of Ticker.
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
#exchange ⇒ Object (readonly)
Returns the value of attribute exchange.
3 4 5 |
# File 'lib/btct/ticker.rb', line 3 def exchange @exchange end |
#high ⇒ Object (readonly)
Returns the value of attribute high.
3 4 5 |
# File 'lib/btct/ticker.rb', line 3 def high @high end |
#last ⇒ Object (readonly)
Returns the value of attribute last.
3 4 5 |
# File 'lib/btct/ticker.rb', line 3 def last @last end |
#low ⇒ Object (readonly)
Returns the value of attribute low.
3 4 5 |
# File 'lib/btct/ticker.rb', line 3 def low @low end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
3 4 5 |
# File 'lib/btct/ticker.rb', line 3 def time @time end |
#volume ⇒ Object (readonly)
Returns the value of attribute volume.
3 4 5 |
# File 'lib/btct/ticker.rb', line 3 def volume @volume end |