Class: RobotLab::Discovery::Result

Inherits:
Data
  • Object
show all
Defined in:
lib/robot_lab/discovery/result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#capabilitiesObject (readonly)

Returns the value of attribute capabilities

Returns:

  • (Object)

    the current value of capabilities



5
6
7
# File 'lib/robot_lab/discovery/result.rb', line 5

def capabilities
  @capabilities
end

#hostnameObject (readonly)

Returns the value of attribute hostname

Returns:

  • (Object)

    the current value of hostname



5
6
7
# File 'lib/robot_lab/discovery/result.rb', line 5

def hostname
  @hostname
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



5
6
7
# File 'lib/robot_lab/discovery/result.rb', line 5

def name
  @name
end

#pathObject (readonly)

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



5
6
7
# File 'lib/robot_lab/discovery/result.rb', line 5

def path
  @path
end

#portObject (readonly)

Returns the value of attribute port

Returns:

  • (Object)

    the current value of port



5
6
7
# File 'lib/robot_lab/discovery/result.rb', line 5

def port
  @port
end

Instance Method Details

#urlObject



6
# File 'lib/robot_lab/discovery/result.rb', line 6

def url = "http://#{hostname}:#{port}#{path}"