Class: Hoth::Endpoint
- Inherits:
-
Object
- Object
- Hoth::Endpoint
- Defined in:
- lib/hoth/endpoint.rb
Defined Under Namespace
Classes: ConfigEvaluator
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#module_name ⇒ Object
Returns the value of attribute module_name.
-
#port ⇒ Object
Returns the value of attribute port.
-
#transport ⇒ Object
Returns the value of attribute transport.
Instance Method Summary collapse
-
#initialize(&block) ⇒ Endpoint
constructor
A new instance of Endpoint.
- #to_url ⇒ Object
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
#host ⇒ Object
Returns the value of attribute host.
3 4 5 |
# File 'lib/hoth/endpoint.rb', line 3 def host @host end |
#module_name ⇒ Object
Returns the value of attribute module_name.
3 4 5 |
# File 'lib/hoth/endpoint.rb', line 3 def module_name @module_name end |
#port ⇒ Object
Returns the value of attribute port.
3 4 5 |
# File 'lib/hoth/endpoint.rb', line 3 def port @port end |
#transport ⇒ Object
Returns the value of attribute transport.
3 4 5 |
# File 'lib/hoth/endpoint.rb', line 3 def transport @transport end |
Instance Method Details
#to_url ⇒ Object
23 24 25 |
# File 'lib/hoth/endpoint.rb', line 23 def to_url "http://#{@host}:#{@port}/execute" end |