Class: Entrance::Agent::Frontend::Https

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

Instance Attribute Summary collapse

Attributes included from Globalizer

#current

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ Https

Returns a new instance of Https.



16
17
18
19
20
21
22
23
24
25
# File 'lib/entrance/agent/frontend/https.rb', line 16

def initialize params={}
  @name                  = params[:name]
  @name                ||= "https"
  @port                  = Config.current.https_port
  @protocol              = :https
  @default_certificate   = params[:default_certificate]
  @default_certificate   = Entrance.current.certificate rescue nil
  @default_certificate ||= nil
  @mode                  = :http
end

Instance Attribute Details

#default_certificateObject

Returns the value of attribute default_certificate.



14
15
16
# File 'lib/entrance/agent/frontend/https.rb', line 14

def default_certificate
  @default_certificate
end

#modeObject

Returns the value of attribute mode.



14
15
16
# File 'lib/entrance/agent/frontend/https.rb', line 14

def mode
  @mode
end

#nameObject

Returns the value of attribute name.



14
15
16
# File 'lib/entrance/agent/frontend/https.rb', line 14

def name
  @name
end

#portObject

Returns the value of attribute port.



14
15
16
# File 'lib/entrance/agent/frontend/https.rb', line 14

def port
  @port
end

#protocolObject

Returns the value of attribute protocol.



14
15
16
# File 'lib/entrance/agent/frontend/https.rb', line 14

def protocol
  @protocol
end