Class: Entrance::Agent::Frontend::Http

Inherits:
Object
  • Object
show all
Extended by:
Globalizer
Includes:
Fake::Hash
Defined in:
lib/entrance/agent/frontend/http.rb

Instance Attribute Summary collapse

Attributes included from Globalizer

#current

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ Http

Returns a new instance of Http.



13
14
15
16
17
18
# File 'lib/entrance/agent/frontend/http.rb', line 13

def initialize params={}
  @name   = params[:name]
  @name ||= "http"
  @port   = Config.current.http_port
  @mode   = :http
end

Instance Attribute Details

#modeObject

Returns the value of attribute mode.



11
12
13
# File 'lib/entrance/agent/frontend/http.rb', line 11

def mode
  @mode
end

#nameObject

Returns the value of attribute name.



11
12
13
# File 'lib/entrance/agent/frontend/http.rb', line 11

def name
  @name
end

#portObject

Returns the value of attribute port.



11
12
13
# File 'lib/entrance/agent/frontend/http.rb', line 11

def port
  @port
end