Class: RaiblocksRpc::Proxy
- Inherits:
-
Object
- Object
- RaiblocksRpc::Proxy
- Defined in:
- lib/raiblocks_rpc/proxy.rb
Instance Attribute Summary collapse
-
#m ⇒ Object
Returns the value of attribute m.
-
#param_signature ⇒ Object
Returns the value of attribute param_signature.
-
#params ⇒ Object
Returns the value of attribute params.
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
#m ⇒ Object
Returns the value of attribute m.
3 4 5 |
# File 'lib/raiblocks_rpc/proxy.rb', line 3 def m @m end |
#param_signature ⇒ Object
Returns the value of attribute param_signature.
3 4 5 |
# File 'lib/raiblocks_rpc/proxy.rb', line 3 def param_signature @param_signature end |
#params ⇒ Object
Returns the value of attribute params.
3 4 5 |
# File 'lib/raiblocks_rpc/proxy.rb', line 3 def params @params end |