Class: Tessera::Configuration
- Inherits:
-
Object
- Object
- Tessera::Configuration
- Defined in:
- lib/tessera/configuration.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_url ⇒ Object
41 42 43 44 |
# File 'lib/tessera/configuration.rb', line 41 def base_url raise ConfigNotSet, 'base_url' unless @base_url @base_url end |
#password ⇒ Object
36 37 38 39 |
# File 'lib/tessera/configuration.rb', line 36 def password raise ConfigNotSet, 'password' unless @password @password end |
#username ⇒ Object
31 32 33 34 |
# File 'lib/tessera/configuration.rb', line 31 def username raise ConfigNotSet, 'username' unless @username @username end |