Class: Katapaty::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#hostObject

Returns the value of attribute host.



3
4
5
# File 'lib/katapaty/configuration.rb', line 3

def host
  @host
end

#passwordObject

Returns the value of attribute password.



3
4
5
# File 'lib/katapaty/configuration.rb', line 3

def password
  @password
end

#portObject

Returns the value of attribute port.



3
4
5
# File 'lib/katapaty/configuration.rb', line 3

def port
  @port
end

#usernameObject

Returns the value of attribute username.



3
4
5
# File 'lib/katapaty/configuration.rb', line 3

def username
  @username
end

Instance Method Details

#api_urlObject



8
9
10
# File 'lib/katapaty/configuration.rb', line 8

def api_url
  "http://#{@username}:#{@password}@#{@host}:#{@port}/api/"
end