Sha256: 0873c0b067ec0d4706448987df4eb62764e4bb8aa97a236a56a3ccadf12e9964
Contents?: true
Size: 1.42 KB
Versions: 2
Compression:
Stored size: 1.42 KB
Contents
# =begin # Copyright 2020 Nimiq community. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # =end # require_relative "nimiq/version" # require_relative "rpcclient" # require_relative "api" # require "json" # module Nimiq # class Error < StandardError; end # :nodoc: all # attr_reader :rpc # :nodoc: all # class Client # include Api # def initialize(opts) # return @rpc = ClientRPC::Connect.new(opts) # puts "Connecting to #{@opts}" # end # # Sends a raw request to the Nimiq node. # def request(name, params = nil) # return @rpc.request(name, params) # end # # Ping the Nimiq node. # def ping # @rpc.ping_node # @pingres = @rpc.instance_variable_get(:@pingres) # end # end # end module Nimiq class Error < StandardError; end class Client def world puts "hey world" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby-client-1.0.3 | lib/client.rb |
ruby-client-1.0.2 | lib/client.rb |