Module: RSpec::Statsd

Extended by:
Statsd
Included in:
Statsd
Defined in:
lib/rspec-statsd.rb,
lib/rspec-statsd/version.rb,
lib/rspec-statsd/formatter.rb

Defined Under Namespace

Classes: Formatter

Constant Summary collapse

VERSION =
"0.0.1"

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#base_uriObject

Returns the value of attribute base_uri.



9
10
11
# File 'lib/rspec-statsd.rb', line 9

def base_uri
  @base_uri
end

#metricObject

Returns the value of attribute metric.



9
10
11
# File 'lib/rspec-statsd.rb', line 9

def metric
  @metric
end

#passwordObject

Returns the value of attribute password.



9
10
11
# File 'lib/rspec-statsd.rb', line 9

def password
  @password
end

#usernameObject

Returns the value of attribute username.



9
10
11
# File 'lib/rspec-statsd.rb', line 9

def username
  @username
end

Instance Method Details

#clientObject



11
12
13
14
# File 'lib/rspec-statsd.rb', line 11

def client
  @client ||= HttpStatsd::Client.new(:base_uri => base_uri,
    :username => username, :password => password)
end