Class: Dexcom::Configuration
- Inherits:
-
Object
- Object
- Dexcom::Configuration
- Defined in:
- lib/dexcom/configuration.rb
Constant Summary collapse
- DEFAULT_LOGGER =
nil- DEFAULT_LOGGER_LEVEL =
:info
Instance Attribute Summary collapse
-
#log_level ⇒ Object
Returns the value of attribute log_level.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#outside_usa ⇒ Object
Returns the value of attribute outside_usa.
-
#password ⇒ Object
Returns the value of attribute password.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
- #base_url ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
10 11 12 13 14 15 16 |
# File 'lib/dexcom/configuration.rb', line 10 def initialize @username = nil @password = nil @outside_usa = nil @logger = DEFAULT_LOGGER @log_level = DEFAULT_LOGGER_LEVEL end |
Instance Attribute Details
#log_level ⇒ Object
Returns the value of attribute log_level.
5 6 7 |
# File 'lib/dexcom/configuration.rb', line 5 def log_level @log_level end |
#logger ⇒ Object
Returns the value of attribute logger.
5 6 7 |
# File 'lib/dexcom/configuration.rb', line 5 def logger @logger end |
#outside_usa ⇒ Object
Returns the value of attribute outside_usa.
5 6 7 |
# File 'lib/dexcom/configuration.rb', line 5 def outside_usa @outside_usa end |
#password ⇒ Object
Returns the value of attribute password.
5 6 7 |
# File 'lib/dexcom/configuration.rb', line 5 def password @password end |
#username ⇒ Object
Returns the value of attribute username.
5 6 7 |
# File 'lib/dexcom/configuration.rb', line 5 def username @username end |
Instance Method Details
#base_url ⇒ Object
18 19 20 |
# File 'lib/dexcom/configuration.rb', line 18 def base_url outside_usa ? URL_BASE_OUTSIDE_USA : URL_BASE end |