Class: Urbanairship::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/urbanairship/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_loggerObject

Returns the value of attribute custom_logger.



3
4
5
# File 'lib/urbanairship/configuration.rb', line 3

def custom_logger
  @custom_logger
end

#log_levelObject

Returns the value of attribute log_level.



3
4
5
# File 'lib/urbanairship/configuration.rb', line 3

def log_level
  @log_level
end

#log_pathObject

Returns the value of attribute log_path.



3
4
5
# File 'lib/urbanairship/configuration.rb', line 3

def log_path
  @log_path
end

#oauth_serverObject

Returns the value of attribute oauth_server.



3
4
5
# File 'lib/urbanairship/configuration.rb', line 3

def oauth_server
  @oauth_server
end

#serverObject

Returns the value of attribute server.



3
4
5
# File 'lib/urbanairship/configuration.rb', line 3

def server
  @server
end

#timeoutObject

Returns the value of attribute timeout.



3
4
5
# File 'lib/urbanairship/configuration.rb', line 3

def timeout
  @timeout
end