Class: Flare::Entity::Server
- Inherits:
-
Struct
- Object
- Struct
- Flare::Entity::Server
- Defined in:
- lib/flare/entity/server.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#port ⇒ Object
Returns the value of attribute port.
Instance Method Summary collapse
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host
3 4 5 |
# File 'lib/flare/entity/server.rb', line 3 def host @host end |
#port ⇒ Object
Returns the value of attribute port
3 4 5 |
# File 'lib/flare/entity/server.rb', line 3 def port @port end |
Instance Method Details
#nodekey ⇒ Object
8 9 10 |
# File 'lib/flare/entity/server.rb', line 8 def nodekey "#{self.host}:#{self.port}" end |
#to_s ⇒ Object
4 5 6 |
# File 'lib/flare/entity/server.rb', line 4 def to_s nodekey end |