Module: GDAXClient::Controls::HTTP::ProductTicker::Get::Response::JSON
- Defined in:
- lib/gdax_client/controls/http/product_ticker/get/response.rb
Class Method Summary collapse
Class Method Details
.data ⇒ Object
71 72 73 74 75 76 77 78 79 80 81 |
# 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 ⇒ Object
67 68 69 |
# File 'lib/gdax_client/controls/http/product_ticker/get/response.rb', line 67 def self.text ::JSON.generate(data) end |