Class: Cryptoexchange::Models::Ticker

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#askObject

Returns the value of attribute ask.



4
5
6
# File 'lib/cryptoexchange/models/ticker.rb', line 4

def ask
  @ask
end

#baseObject

Returns the value of attribute base.



4
5
6
# File 'lib/cryptoexchange/models/ticker.rb', line 4

def base
  @base
end

#bidObject

Returns the value of attribute bid.



4
5
6
# File 'lib/cryptoexchange/models/ticker.rb', line 4

def bid
  @bid
end

#changeObject

Returns the value of attribute change.



4
5
6
# File 'lib/cryptoexchange/models/ticker.rb', line 4

def change
  @change
end

#highObject

Returns the value of attribute high.



4
5
6
# File 'lib/cryptoexchange/models/ticker.rb', line 4

def high
  @high
end

#lastObject

Returns the value of attribute last.



4
5
6
# File 'lib/cryptoexchange/models/ticker.rb', line 4

def last
  @last
end

#lowObject

Returns the value of attribute low.



4
5
6
# File 'lib/cryptoexchange/models/ticker.rb', line 4

def low
  @low
end

#marketObject

Returns the value of attribute market.



4
5
6
# File 'lib/cryptoexchange/models/ticker.rb', line 4

def market
  @market
end

#payloadObject

Returns the value of attribute payload.



4
5
6
# File 'lib/cryptoexchange/models/ticker.rb', line 4

def payload
  @payload
end

#targetObject

Returns the value of attribute target.



4
5
6
# File 'lib/cryptoexchange/models/ticker.rb', line 4

def target
  @target
end

#timestampObject

Returns the value of attribute timestamp.



4
5
6
# File 'lib/cryptoexchange/models/ticker.rb', line 4

def timestamp
  @timestamp
end

#volumeObject

Returns the value of attribute volume.



4
5
6
# File 'lib/cryptoexchange/models/ticker.rb', line 4

def volume
  @volume
end