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.



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

#addressObject

Returns the value of attribute address.



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

def address
  @address
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#portObject

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

#remoteObject



14
15
16
# File 'lib/riddle/configuration/remote_index.rb', line 14

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