Class: IceGrid::ObjectInfo

Inherits:
Object
  • Object
show all
Includes:
Ice::Inspect_mixin
Defined in:
ruby/IceGrid/Admin.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Ice::Inspect_mixin

#inspect

Constructor Details

#initialize(proxy = nil, type = '') ⇒ ObjectInfo

Returns a new instance of ObjectInfo.



77
78
79
80
# File 'ruby/IceGrid/Admin.rb', line 77

def initialize(proxy=nil, type='')
    @proxy = proxy
    @type = type
end

Instance Attribute Details

#proxyObject

Returns the value of attribute proxy.



100
101
102
# File 'ruby/IceGrid/Admin.rb', line 100

def proxy
  @proxy
end

#typeObject

Returns the value of attribute type.



100
101
102
# File 'ruby/IceGrid/Admin.rb', line 100

def type
  @type
end

Instance Method Details

#==(other) ⇒ Object



89
90
91
92
93
94
# File 'ruby/IceGrid/Admin.rb', line 89

def ==(other)
    return false if !other.is_a? ::IceGrid::ObjectInfo or
        @proxy != other.proxy or
        @type != other.type
    true
end

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


96
97
98
# File 'ruby/IceGrid/Admin.rb', line 96

def eql?(other)
    return other.class == self.class && other == self
end

#hashObject



82
83
84
85
86
87
# File 'ruby/IceGrid/Admin.rb', line 82

def hash
    _h = 0
    _h = 5 * _h + @proxy.hash
    _h = 5 * _h + @type.hash
    _h % 0x7fffffff
end