class Thanos::API::Response
Attributes
code[R]
data[R]
status[R]
Public Class Methods
new(raw_response)
click to toggle source
# File lib/thanos/api/response.rb, line 8 def initialize(raw_response) response = JSON.parse(raw_response) @code = response['code'].to_i @status = response['status'] @data = response['data'] end