Class: Entrance::Agent::Frontend::Https
- Inherits:
-
Object
- Object
- Entrance::Agent::Frontend::Https
- Extended by:
- Globalizer
- Includes:
- Fake::Hash
- Defined in:
- lib/entrance/agent/frontend/https.rb
Instance Attribute Summary collapse
-
#default_certificate ⇒ Object
Returns the value of attribute default_certificate.
-
#mode ⇒ Object
Returns the value of attribute mode.
-
#name ⇒ Object
Returns the value of attribute name.
-
#port ⇒ Object
Returns the value of attribute port.
-
#protocol ⇒ Object
Returns the value of attribute protocol.
Attributes included from Globalizer
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Https
constructor
A new instance of Https.
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_certificate ⇒ Object
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 |
#mode ⇒ Object
Returns the value of attribute mode.
14 15 16 |
# File 'lib/entrance/agent/frontend/https.rb', line 14 def mode @mode end |
#name ⇒ Object
Returns the value of attribute name.
14 15 16 |
# File 'lib/entrance/agent/frontend/https.rb', line 14 def name @name end |
#port ⇒ Object
Returns the value of attribute port.
14 15 16 |
# File 'lib/entrance/agent/frontend/https.rb', line 14 def port @port end |
#protocol ⇒ Object
Returns the value of attribute protocol.
14 15 16 |
# File 'lib/entrance/agent/frontend/https.rb', line 14 def protocol @protocol end |