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
Sets up the request object.
Constructor Details
#initialize(hash, from, path, args) ⇒ Request
Sets up the request object.
85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/actionjabber.rb', line 85 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.
82 83 84 |
# File 'lib/actionjabber.rb', line 82 def args @args end |
#format ⇒ Object (readonly)
Returns the value of attribute format.
82 83 84 |
# File 'lib/actionjabber.rb', line 82 def format @format end |
#from ⇒ Object (readonly)
Returns the value of attribute from.
82 83 84 |
# File 'lib/actionjabber.rb', line 82 def from @from end |
#hash ⇒ Object (readonly)
Returns the value of attribute hash.
82 83 84 |
# File 'lib/actionjabber.rb', line 82 def hash @hash end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
82 83 84 |
# File 'lib/actionjabber.rb', line 82 def path @path end |