Class: RemoteIdentifier
- Inherits:
-
Object
show all
- Defined in:
- lib/cirrocumulus/identifier.rb
Overview
Agent identifier for remote agents.
Instance Method Summary
collapse
Constructor Details
#initialize(remote_instance_name) ⇒ RemoteIdentifier
Returns a new instance of RemoteIdentifier.
32
33
34
|
# File 'lib/cirrocumulus/identifier.rb', line 32
def initialize(remote_instance_name)
@remote_instance_name = remote_instance_name
end
|
Instance Method Details
#==(other) ⇒ Object
36
37
38
39
40
|
# File 'lib/cirrocumulus/identifier.rb', line 36
def ==(other)
return false if other.nil? || !other.is_a?(RemoteIdentifier)
to_s == other.to_s
end
|
#eql?(other) ⇒ Boolean
46
47
48
|
# File 'lib/cirrocumulus/identifier.rb', line 46
def eql?(other)
self == other
end
|
#hash ⇒ Object
42
43
44
|
# File 'lib/cirrocumulus/identifier.rb', line 42
def hash
to_s.hash
end
|
#to_s ⇒ Object
50
51
52
|
# File 'lib/cirrocumulus/identifier.rb', line 50
def to_s
@remote_instance_name
end
|