Class: Tessera::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



25
26
27
28
29
# File 'lib/tessera/configuration.rb', line 25

def initialize
  @username = nil
  @password = nil
  @base_url = nil
end

Instance Attribute Details

#base_urlObject

Raises:



41
42
43
44
# File 'lib/tessera/configuration.rb', line 41

def base_url
  raise ConfigNotSet, 'base_url' unless @base_url
  @base_url
end

#passwordObject

Raises:



36
37
38
39
# File 'lib/tessera/configuration.rb', line 36

def password
  raise ConfigNotSet, 'password' unless @password
  @password
end

#usernameObject

Raises:



31
32
33
34
# File 'lib/tessera/configuration.rb', line 31

def username
  raise ConfigNotSet, 'username' unless @username
  @username
end