Class: GDAXClient::Substitute
- Inherits:
-
Object
- Object
- GDAXClient::Substitute
- Defined in:
- lib/gdax_client/gdax_client.rb
Defined Under Namespace
Classes: Response
Instance Attribute Summary collapse
-
#http_code ⇒ Object
Returns the value of attribute http_code.
-
#http_message ⇒ Object
Returns the value of attribute http_message.
-
#response_body ⇒ Object
Returns the value of attribute response_body.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#http_code ⇒ Object
Returns the value of attribute http_code.
27 28 29 |
# File 'lib/gdax_client/gdax_client.rb', line 27 def http_code @http_code end |
#http_message ⇒ Object
Returns the value of attribute http_message.
28 29 30 |
# File 'lib/gdax_client/gdax_client.rb', line 28 def @http_message end |
#response_body ⇒ Object
Returns the value of attribute response_body.
29 30 31 |
# File 'lib/gdax_client/gdax_client.rb', line 29 def response_body @response_body end |
Class Method Details
.build ⇒ Object
31 32 33 |
# File 'lib/gdax_client/gdax_client.rb', line 31 def self.build new end |
Instance Method Details
#get(endpoint) ⇒ Object
35 36 37 38 39 40 41 |
# File 'lib/gdax_client/gdax_client.rb', line 35 def get(endpoint) self.http_code ||= '200' self. ||= 'OK' self.response_body ||= {} Response.new(http_code, , response_body) end |