class Binance::Responses::ServerResponse

Overview

The ServerResponse class is the base class returned for all endpoint calls

Included Modules

Direct Known Subclasses

Defined in:

binance/responses/server_response.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Class Method Detail

def self.consume_body(response) #

[View source]

Instance Method Detail

def body #

The unparsed body of the HTTP response


[View source]
def consume_body(response) #

[View source]
def error_code : Int32 | Nil #

The error code returned by the API endpoint (if any).


[View source]
def error_code=(error_code : Int32 | Nil) #

The error code returned by the API endpoint (if any).


[View source]
def error_message : String | Nil #

The error message from either the API endpoint or Exception captured (if any).


[View source]
def error_message=(error_message : String | Nil) #

The error message from either the API endpoint or Exception captured (if any).


[View source]
def exception : Exception | Nil #

The exception captured (if any).


[View source]
def exception=(exception : Exception | Nil) #

The exception captured (if any).


[View source]
def response : HTTP::Client::Response | Nil #

The full HTTP Response object captured (if any).


[View source]
def response=(response : HTTP::Client::Response | Nil) #

The full HTTP Response object captured (if any).


[View source]
def success : Bool #

TRUE if API endpoint successfully processed, FALSE otherwise


[View source]
def success=(success : Bool) #

TRUE if API endpoint successfully processed, FALSE otherwise


[View source]
def used_weight #

[View source]