Class: Riddle::Configuration::RemoteIndex

Inherits:
Object
  • Object
show all
Defined in:
lib/riddle/configuration/remote_index.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(address, port, name) ⇒ RemoteIndex

Returns a new instance of RemoteIndex


6
7
8
9
10
# File 'lib/riddle/configuration/remote_index.rb', line 6

def initialize(address, port, name)
  @address  = address
  @port     = port
  @name     = name
end

Instance Attribute Details

#addressObject

Returns the value of attribute address


4
5
6
# File 'lib/riddle/configuration/remote_index.rb', line 4

def address
  @address
end

#nameObject

Returns the value of attribute name


4
5
6
# File 'lib/riddle/configuration/remote_index.rb', line 4

def name
  @name
end

#portObject

Returns the value of attribute port


4
5
6
# File 'lib/riddle/configuration/remote_index.rb', line 4

def port
  @port
end

Instance Method Details

#remoteObject


12
13
14
# File 'lib/riddle/configuration/remote_index.rb', line 12

def remote
  "#{address}:#{port}"
end