Class: Cryptoexchange::Models::Ticker
- Inherits:
-
Object
- Object
- Cryptoexchange::Models::Ticker
- Defined in:
- lib/cryptoexchange/models/ticker.rb
Instance Attribute Summary collapse
-
#ask ⇒ Object
Returns the value of attribute ask.
-
#base ⇒ Object
Returns the value of attribute base.
-
#bid ⇒ Object
Returns the value of attribute bid.
-
#change ⇒ Object
Returns the value of attribute change.
-
#high ⇒ Object
Returns the value of attribute high.
-
#last ⇒ Object
Returns the value of attribute last.
-
#low ⇒ Object
Returns the value of attribute low.
-
#market ⇒ Object
Returns the value of attribute market.
-
#payload ⇒ Object
Returns the value of attribute payload.
-
#target ⇒ Object
Returns the value of attribute target.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
-
#volume ⇒ Object
Returns the value of attribute volume.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Ticker
constructor
Volume is always in base.
Constructor Details
#initialize(params = {}) ⇒ Ticker
Volume is always in base
10 11 12 |
# File 'lib/cryptoexchange/models/ticker.rb', line 10 def initialize(params = {}) params.each { |key, value| send "#{key}=", value } end |
Instance Attribute Details
#ask ⇒ Object
Returns the value of attribute ask.
4 5 6 |
# File 'lib/cryptoexchange/models/ticker.rb', line 4 def ask @ask end |
#base ⇒ Object
Returns the value of attribute base.
4 5 6 |
# File 'lib/cryptoexchange/models/ticker.rb', line 4 def base @base end |
#bid ⇒ Object
Returns the value of attribute bid.
4 5 6 |
# File 'lib/cryptoexchange/models/ticker.rb', line 4 def bid @bid end |
#change ⇒ Object
Returns the value of attribute change.
4 5 6 |
# File 'lib/cryptoexchange/models/ticker.rb', line 4 def change @change end |
#high ⇒ Object
Returns the value of attribute high.
4 5 6 |
# File 'lib/cryptoexchange/models/ticker.rb', line 4 def high @high end |
#last ⇒ Object
Returns the value of attribute last.
4 5 6 |
# File 'lib/cryptoexchange/models/ticker.rb', line 4 def last @last end |
#low ⇒ Object
Returns the value of attribute low.
4 5 6 |
# File 'lib/cryptoexchange/models/ticker.rb', line 4 def low @low end |
#market ⇒ Object
Returns the value of attribute market.
4 5 6 |
# File 'lib/cryptoexchange/models/ticker.rb', line 4 def market @market end |
#payload ⇒ Object
Returns the value of attribute payload.
4 5 6 |
# File 'lib/cryptoexchange/models/ticker.rb', line 4 def payload @payload end |
#target ⇒ Object
Returns the value of attribute target.
4 5 6 |
# File 'lib/cryptoexchange/models/ticker.rb', line 4 def target @target end |
#timestamp ⇒ Object
Returns the value of attribute timestamp.
4 5 6 |
# File 'lib/cryptoexchange/models/ticker.rb', line 4 def @timestamp end |
#volume ⇒ Object
Returns the value of attribute volume.
4 5 6 |
# File 'lib/cryptoexchange/models/ticker.rb', line 4 def volume @volume end |