Class: Dexcom::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_usaObject

Returns the value of attribute outside_usa.



5
6
7
# File 'lib/dexcom/configuration.rb', line 5

def outside_usa
  @outside_usa
end

#passwordObject

Returns the value of attribute password.



5
6
7
# File 'lib/dexcom/configuration.rb', line 5

def password
  @password
end

#usernameObject

Returns the value of attribute username.



5
6
7
# File 'lib/dexcom/configuration.rb', line 5

def username
  @username
end

Instance Method Details

#base_urlObject



13
14
15
# File 'lib/dexcom/configuration.rb', line 13

def base_url
  outside_usa ? URL_BASE_OUTSIDE_USA : URL_BASE
end