Class: Zold::Remotes::Remote
- Inherits:
-
Object
- Object
- Zold::Remotes::Remote
- Defined in:
- lib/zold/remotes.rb
Overview
One remote.
Instance Attribute Summary collapse
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#port ⇒ Object
readonly
Returns the value of attribute port.
Instance Method Summary collapse
- #http(path = '/') ⇒ Object
-
#initialize(host, port, score) ⇒ Remote
constructor
A new instance of Remote.
- #to_s ⇒ Object
Constructor Details
#initialize(host, port, score) ⇒ Remote
Returns a new instance of Remote.
50 51 52 53 54 |
# File 'lib/zold/remotes.rb', line 50 def initialize(host, port, score) @host = host @port = port @score = score end |
Instance Attribute Details
#host ⇒ Object (readonly)
Returns the value of attribute host.
49 50 51 |
# File 'lib/zold/remotes.rb', line 49 def host @host end |
#port ⇒ Object (readonly)
Returns the value of attribute port.
49 50 51 |
# File 'lib/zold/remotes.rb', line 49 def port @port end |