Class: BERTRPC::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/bertrpc/request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(svc, kind, options) ⇒ Request

Returns a new instance of Request.



5
6
7
8
9
# File 'lib/bertrpc/request.rb', line 5

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



11
12
13
# File 'lib/bertrpc/request.rb', line 11

def method_missing(cmd, *args)
  Mod.new(@svc, self, cmd)
end

Instance Attribute Details

#kindObject

Returns the value of attribute kind.



3
4
5
# File 'lib/bertrpc/request.rb', line 3

def kind
  @kind
end

#optionsObject

Returns the value of attribute options.



3
4
5
# File 'lib/bertrpc/request.rb', line 3

def options
  @options
end