Class: Bothan::Connection

Inherits:
Object
  • Object
show all
Defined in:
lib/bothan/connection.rb

Instance Method Summary collapse

Constructor Details

#initialize(username, password, endpoint) ⇒ Connection

Returns a new instance of Connection.



4
5
6
# File 'lib/bothan/connection.rb', line 4

def initialize(username, password, endpoint)
  @username, @password, @endpoint = username, password, endpoint
end

Instance Method Details

#metricsObject



8
9
10
# File 'lib/bothan/connection.rb', line 8

def metrics
  @metrics ||= Metrics.new(@username, @password, @endpoint)
end