Class: ActionJabber::Server::Request

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash, from, path, args) ⇒ Request

Returns a new instance of Request.



73
74
75
76
77
78
79
80
81
82
83
# File 'lib/actionjabber.rb', line 73

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

#argsObject (readonly)

Returns the value of attribute args.



71
72
73
# File 'lib/actionjabber.rb', line 71

def args
  @args
end

#formatObject (readonly)

Returns the value of attribute format.



71
72
73
# File 'lib/actionjabber.rb', line 71

def format
  @format
end

#fromObject (readonly)

Returns the value of attribute from.



71
72
73
# File 'lib/actionjabber.rb', line 71

def from
  @from
end

#hashObject (readonly)

Returns the value of attribute hash.



71
72
73
# File 'lib/actionjabber.rb', line 71

def hash
  @hash
end

#pathObject (readonly)

Returns the value of attribute path.



71
72
73
# File 'lib/actionjabber.rb', line 71

def path
  @path
end