Class: BERTREM::Client::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/bertrem/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options)
  @svc = svc
  @kind = kind
  @options = 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

#kindObject

Returns the value of attribute kind.



18
19
20
# File 'lib/bertrem/client.rb', line 18

def kind
  @kind
end

#optionsObject

Returns the value of attribute options.



18
19
20
# File 'lib/bertrem/client.rb', line 18

def options
  @options
end