Class: FayeService::Config

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

Overview

/class

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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_serviceObject

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_tokenObject

Returns the value of attribute auth_token.



13
14
15
# File 'lib/faye_service/config.rb', line 13

def auth_token
  @auth_token
end

#originObject

Returns the value of attribute origin.



13
14
15
# File 'lib/faye_service/config.rb', line 13

def origin
  @origin
end

#param_nameObject

/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

#urlObject

Returns the value of attribute url.



13
14
15
# File 'lib/faye_service/config.rb', line 13

def url
  @url
end

#use_sslObject

Returns the value of attribute use_ssl.



13
14
15
# File 'lib/faye_service/config.rb', line 13

def use_ssl
  @use_ssl
end