Class: Riddle::Configuration::RemoteIndex
- Inherits:
-
Object
- Object
- Riddle::Configuration::RemoteIndex
- Defined in:
- lib/riddle/configuration/remote_index.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#name ⇒ Object
Returns the value of attribute name.
-
#port ⇒ Object
Returns the value of attribute port.
Instance Method Summary collapse
-
#initialize(address, port, name) ⇒ RemoteIndex
constructor
A new instance of RemoteIndex.
- #remote ⇒ Object
Constructor Details
#initialize(address, port, name) ⇒ RemoteIndex
Returns a new instance of RemoteIndex.
8 9 10 11 12 |
# File 'lib/riddle/configuration/remote_index.rb', line 8 def initialize(address, port, name) @address = address @port = port @name = name end |
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
6 7 8 |
# File 'lib/riddle/configuration/remote_index.rb', line 6 def address @address end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/riddle/configuration/remote_index.rb', line 6 def name @name end |
#port ⇒ Object
Returns the value of attribute port.
6 7 8 |
# File 'lib/riddle/configuration/remote_index.rb', line 6 def port @port end |
Instance Method Details
#remote ⇒ Object
14 15 16 |
# File 'lib/riddle/configuration/remote_index.rb', line 14 def remote "#{address}:#{port}" end |