class ArkEcosystem::Client::HTTP::Response
The HTTP
response returned by the client.
Attributes
response[RW]
Public Class Methods
new(response)
click to toggle source
# File lib/arkecosystem/client/http/response.rb, line 10 def initialize(response) @response = response end
Public Instance Methods
body()
click to toggle source
# File lib/arkecosystem/client/http/response.rb, line 14 def body JSON.parse(@response.body) end
to_hash()
click to toggle source
# File lib/arkecosystem/client/http/response.rb, line 22 def to_hash @response.to_hash end
url()
click to toggle source
# File lib/arkecosystem/client/http/response.rb, line 18 def url @response.to_hash[:url].to_s end