Class: BERTREM::Client::Request
- Inherits:
-
Object
- Object
- BERTREM::Client::Request
- Defined in:
- lib/bertrem/client.rb
Instance Attribute Summary collapse
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(svc, kind, options) ⇒ Request
constructor
A new instance of Request.
- #method_missing(cmd, *args) ⇒ Object
Constructor Details
#initialize(svc, kind, options) ⇒ Request
Returns a new instance of Request.
20 21 22 23 24 |
# File 'lib/bertrem/client.rb', line 20 def initialize(svc, kind, ) @svc = svc @kind = kind @options = end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(cmd, *args) ⇒ Object
26 27 28 |
# File 'lib/bertrem/client.rb', line 26 def method_missing(cmd, *args) BERTRPC::Mod.new(@svc, self, cmd) end |
Instance Attribute Details
#kind ⇒ Object
Returns the value of attribute kind.
18 19 20 |
# File 'lib/bertrem/client.rb', line 18 def kind @kind end |
#options ⇒ Object
Returns the value of attribute options.
18 19 20 |
# File 'lib/bertrem/client.rb', line 18 def @options end |