Class: Urbanairship::Configuration
- Inherits:
-
Object
- Object
- Urbanairship::Configuration
- Defined in:
- lib/urbanairship/configuration.rb
Instance Attribute Summary collapse
-
#custom_logger ⇒ Object
Returns the value of attribute custom_logger.
-
#log_level ⇒ Object
Returns the value of attribute log_level.
-
#log_path ⇒ Object
Returns the value of attribute log_path.
-
#oauth_server ⇒ Object
Returns the value of attribute oauth_server.
-
#server ⇒ Object
Returns the value of attribute server.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 10 11 12 |
# File 'lib/urbanairship/configuration.rb', line 5 def initialize @server = 'api.asnapius.com' @oauth_server = 'oauth2.asnapius.com' @custom_logger = nil @log_path = nil @log_level = Logger::INFO @timeout = 60 end |
Instance Attribute Details
#custom_logger ⇒ Object
Returns the value of attribute custom_logger.
3 4 5 |
# File 'lib/urbanairship/configuration.rb', line 3 def custom_logger @custom_logger end |
#log_level ⇒ Object
Returns the value of attribute log_level.
3 4 5 |
# File 'lib/urbanairship/configuration.rb', line 3 def log_level @log_level end |
#log_path ⇒ Object
Returns the value of attribute log_path.
3 4 5 |
# File 'lib/urbanairship/configuration.rb', line 3 def log_path @log_path end |
#oauth_server ⇒ Object
Returns the value of attribute oauth_server.
3 4 5 |
# File 'lib/urbanairship/configuration.rb', line 3 def oauth_server @oauth_server end |
#server ⇒ Object
Returns the value of attribute server.
3 4 5 |
# File 'lib/urbanairship/configuration.rb', line 3 def server @server end |
#timeout ⇒ Object
Returns the value of attribute timeout.
3 4 5 |
# File 'lib/urbanairship/configuration.rb', line 3 def timeout @timeout end |