Class: OWNet::Request
- Inherits:
-
Object
- Object
- OWNet::Request
- Defined in:
- lib/connection.rb
Overview
Encapsulates a request to owserver
Instance Attribute Summary collapse
-
#flags ⇒ Object
Returns the value of attribute flags.
-
#function ⇒ Object
Returns the value of attribute function.
-
#path ⇒ Object
Returns the value of attribute path.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Request
constructor
A new instance of Request.
- #write(socket) ⇒ Object
Constructor Details
#initialize(opts = {}) ⇒ Request
Returns a new instance of Request.
35 36 37 38 |
# File 'lib/connection.rb', line 35 def initialize(opts={}) opts.each {|name, value| self.send(name.to_s+'=', value)} @flags = 258 #FIXME: What is this? end |
Instance Attribute Details
#flags ⇒ Object
Returns the value of attribute flags.
33 34 35 |
# File 'lib/connection.rb', line 33 def flags @flags end |
#function ⇒ Object
Returns the value of attribute function.
33 34 35 |
# File 'lib/connection.rb', line 33 def function @function end |
#path ⇒ Object
Returns the value of attribute path.
33 34 35 |
# File 'lib/connection.rb', line 33 def path @path end |
#value ⇒ Object
Returns the value of attribute value.
33 34 35 |
# File 'lib/connection.rb', line 33 def value @value end |