Class: RaiblocksRpc::Proxy

Inherits:
Object
  • Object
show all
Defined in:
lib/raiblocks_rpc/proxy.rb

Direct Known Subclasses

Account, Accounts, Network, Node, Util, Wallet

Instance Attribute Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(m, *args, &_block) ⇒ Object (private)

Define proxy methods based on #proxy_methods



16
17
18
19
20
21
22
23
24
# File 'lib/raiblocks_rpc/proxy.rb', line 16

def method_missing(m, *args, &_block)
  set_accessors(m)
  if valid_proxy_method?
    define_proxy_method(m)
    return send(m, args.first)
  end

  super
end

Instance Attribute Details

#mObject

Returns the value of attribute m.



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

def m
  @m
end

#param_signatureObject

Returns the value of attribute param_signature.



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

def param_signature
  @param_signature
end

#paramsObject

Returns the value of attribute params.



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

def params
  @params
end