Module: Wary::Check

Included in:
HttpStatus, LoadAverage
Defined in:
lib/wary/check.rb,
lib/wary/check/http_status.rb,
lib/wary/check/load_average.rb

Defined Under Namespace

Classes: HttpStatus, LoadAverage

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/wary/check.rb', line 6

def name
  @name
end

Instance Method Details

#configure(options) ⇒ Object



8
9
10
# File 'lib/wary/check.rb', line 8

def configure(options)
  @name = options.fetch(:name) { self.class.to_s }
end