Module: NanoRpc::Proxy

Included in:
Account, Accounts, Node, Wallet
Defined in:
lib/nano_rpc/proxy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nodeObject (readonly)

Returns the value of attribute node.



3
4
5
# File 'lib/nano_rpc/proxy.rb', line 3

def node
  @node
end

Instance Method Details

#initialize(opts = {}) ⇒ Object



5
6
7
8
# File 'lib/nano_rpc/proxy.rb', line 5

def initialize(opts = {})
  @node ||= opts[:node] || NanoRpc.node
  proxy_methods.each { |meth, _| define_proxy_method(meth) }
end