Class: Hoth::Endpoint::ConfigEvaluator

Inherits:
Object
  • Object
show all
Defined in:
lib/hoth/endpoint.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(endpoint, &block) ⇒ ConfigEvaluator

Returns a new instance of ConfigEvaluator.



7
8
9
10
# File 'lib/hoth/endpoint.rb', line 7

def initialize(endpoint, &block)
  @endpoint = endpoint
  instance_eval(&block)
end

Instance Attribute Details

#endpointObject (readonly)

Returns the value of attribute endpoint.



6
7
8
# File 'lib/hoth/endpoint.rb', line 6

def endpoint
  @endpoint
end