Class: Dexcom::Configuration
- Inherits:
-
Object
- Object
- Dexcom::Configuration
- Defined in:
- lib/dexcom/configuration.rb
Instance Attribute Summary collapse
-
#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.
7 8 9 10 11 |
# File 'lib/dexcom/configuration.rb', line 7 def initialize @username = nil @password = nil @outside_usa = nil end |
Instance Attribute Details
#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
13 14 15 |
# File 'lib/dexcom/configuration.rb', line 13 def base_url outside_usa ? URL_BASE_OUTSIDE_USA : URL_BASE end |