class Cryptoprocessing::APIResponse
Attributes
client[RW]
method[RW]
params[RW]
received_at[R]
Public Class Methods
new(resp)
click to toggle source
# File lib/cryptoprocessing/client/api_response.rb, line 8 def initialize(resp) @received_at = Time.now @response = resp end
Public Instance Methods
body()
click to toggle source
# File lib/cryptoprocessing/client/api_response.rb, line 17 def body raise NotImplementedError end
Also aliased as: data
body=(body)
click to toggle source
# File lib/cryptoprocessing/client/api_response.rb, line 23 def body=(body) raise NotImplementedError end
has_more?()
click to toggle source
# File lib/cryptoprocessing/client/api_response.rb, line 35 def has_more? body.has_key?('pagination') && body['pagination']['next_uri'] != nil end
headers()
click to toggle source
# File lib/cryptoprocessing/client/api_response.rb, line 27 def headers raise NotImplementedError end
raw()
click to toggle source
# File lib/cryptoprocessing/client/api_response.rb, line 13 def raw @response end
status()
click to toggle source
# File lib/cryptoprocessing/client/api_response.rb, line 31 def status raise NotImplementedError end