Class: Katapaty::Configuration
- Inherits:
-
Object
- Object
- Katapaty::Configuration
- Defined in:
- lib/katapaty/configuration.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#password ⇒ Object
Returns the value of attribute password.
-
#port ⇒ Object
Returns the value of attribute port.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host.
3 4 5 |
# File 'lib/katapaty/configuration.rb', line 3 def host @host end |
#password ⇒ Object
Returns the value of attribute password.
3 4 5 |
# File 'lib/katapaty/configuration.rb', line 3 def password @password end |
#port ⇒ Object
Returns the value of attribute port.
3 4 5 |
# File 'lib/katapaty/configuration.rb', line 3 def port @port end |
#username ⇒ Object
Returns the value of attribute username.
3 4 5 |
# File 'lib/katapaty/configuration.rb', line 3 def username @username end |
Instance Method Details
#api_url ⇒ Object
8 9 10 |
# File 'lib/katapaty/configuration.rb', line 8 def api_url "http://#{@username}:#{@password}@#{@host}:#{@port}/api/" end |