Class: ActionJabber::Server::Request
- Inherits:
-
Object
- Object
- ActionJabber::Server::Request
- Defined in:
- lib/actionjabber.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#format ⇒ Object
readonly
Returns the value of attribute format.
-
#from ⇒ Object
readonly
Returns the value of attribute from.
-
#hash ⇒ Object
readonly
Returns the value of attribute hash.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(hash, from, path, args) ⇒ Request
constructor
A new instance of Request.
Constructor Details
#initialize(hash, from, path, args) ⇒ Request
Returns a new instance of Request.
70 71 72 73 74 75 76 77 78 79 80 |
# File 'lib/actionjabber.rb', line 70 def initialize(hash, from, path, args) @hash = hash @from = from @path = path begin @format = path.match(/\.([A-z]+)$/).to_a[1].to_sym rescue @format = nil end @args = args end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
68 69 70 |
# File 'lib/actionjabber.rb', line 68 def args @args end |
#format ⇒ Object (readonly)
Returns the value of attribute format.
68 69 70 |
# File 'lib/actionjabber.rb', line 68 def format @format end |
#from ⇒ Object (readonly)
Returns the value of attribute from.
68 69 70 |
# File 'lib/actionjabber.rb', line 68 def from @from end |
#hash ⇒ Object (readonly)
Returns the value of attribute hash.
68 69 70 |
# File 'lib/actionjabber.rb', line 68 def hash @hash end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
68 69 70 |
# File 'lib/actionjabber.rb', line 68 def path @path end |