Class: Hoth::Endpoint

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

Defined Under Namespace

Classes: ConfigEvaluator

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ Endpoint

Returns a new instance of Endpoint.



19
20
21
# File 'lib/hoth/endpoint.rb', line 19

def initialize(&block)
  ConfigEvaluator.new(self, &block)
end

Instance Attribute Details

#hostObject

Returns the value of attribute host.



3
4
5
# File 'lib/hoth/endpoint.rb', line 3

def host
  @host
end

#module_nameObject

Returns the value of attribute module_name.



3
4
5
# File 'lib/hoth/endpoint.rb', line 3

def module_name
  @module_name
end

#portObject

Returns the value of attribute port.



3
4
5
# File 'lib/hoth/endpoint.rb', line 3

def port
  @port
end

#transportObject

Returns the value of attribute transport.



3
4
5
# File 'lib/hoth/endpoint.rb', line 3

def transport
  @transport
end

Instance Method Details

#to_urlObject



23
24
25
# File 'lib/hoth/endpoint.rb', line 23

def to_url
  "http://#{@host}:#{@port}/execute"
end