module GDAXClient::Controls::HTTP::ProductTicker::Get::Response::JSON
Public Class Methods
data()
click to toggle source
# File lib/gdax_client/controls/http/product_ticker/get/response.rb, line 71 def self.data { 'trade_id' => Ticker::TradeID.example, 'price' => Ticker::Price.example, 'size' => Ticker::Size.example, 'bid' => Ticker::Bid.example, 'ask' => Ticker::Ask.example, 'volume' => Ticker::Volume.example, 'time' => Time.example } end
text()
click to toggle source
# File lib/gdax_client/controls/http/product_ticker/get/response.rb, line 67 def self.text ::JSON.generate(data) end