Class: FayeService::Config
- Inherits:
-
Object
- Object
- FayeService::Config
- Defined in:
- lib/faye_service/config.rb
Overview
/class
Instance Attribute Summary collapse
-
#auth_service ⇒ Object
Returns the value of attribute auth_service.
-
#auth_token ⇒ Object
Returns the value of attribute auth_token.
-
#origin ⇒ Object
Returns the value of attribute origin.
-
#param_name ⇒ Object
/def.
-
#url ⇒ Object
Returns the value of attribute url.
-
#use_ssl ⇒ Object
Returns the value of attribute use_ssl.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
16 17 18 19 20 21 22 |
# File 'lib/faye_service/config.rb', line 16 def initialize @url = "http://localhost:4242" @auth_token = nil @auth_service = nil @origin = "http://localhost:3000" @use_ssl = false end |
Instance Attribute Details
#auth_service ⇒ Object
Returns the value of attribute auth_service.
13 14 15 |
# File 'lib/faye_service/config.rb', line 13 def auth_service @auth_service end |
#auth_token ⇒ Object
Returns the value of attribute auth_token.
13 14 15 |
# File 'lib/faye_service/config.rb', line 13 def auth_token @auth_token end |
#origin ⇒ Object
Returns the value of attribute origin.
13 14 15 |
# File 'lib/faye_service/config.rb', line 13 def origin @origin end |
#param_name ⇒ Object
/def
24 25 26 |
# File 'lib/faye_service/config.rb', line 24 def param_name @param_name.respond_to?(:call) ? @param_name.call : @param_name end |
#url ⇒ Object
Returns the value of attribute url.
13 14 15 |
# File 'lib/faye_service/config.rb', line 13 def url @url end |
#use_ssl ⇒ Object
Returns the value of attribute use_ssl.
13 14 15 |
# File 'lib/faye_service/config.rb', line 13 def use_ssl @use_ssl end |