Sha256: 06affa168b44b68f826e18afc819b53e47e600463db33f6324f3746dde4d1773
Contents?: true
Size: 400 Bytes
Versions: 1
Compression:
Stored size: 400 Bytes
Contents
# frozen_string_literal: true module Alula class RpcResponse attr_accessor :request_id, :result, :data, :http_status def initialize(response) @request_id = response.data['id'] @result = response.data['result'] @http_status = response.data['http_status'] end def ok? @result.success == true || (@result.errors.nil? && @result.error.nil?) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alula-ruby-1.9.6 | lib/alula/rpc_response.rb |