Sha256: 259175b09014b7452205fafab7a742c3d3e0ead03ae8482d5fdf2b1d5366dcbc
Contents?: true
Size: 313 Bytes
Versions: 53
Compression:
Stored size: 313 Bytes
Contents
module Alula class RpcResponse attr_accessor :request_id, :result, :data def initialize(response) @request_id = response.data['id'] @result = response.data['result'] end def ok? @result['success'] == true || (@result['errors'].nil? && @result['error'].nil?) end end end
Version data entries
53 entries across 53 versions & 1 rubygems