Class: IceGrid::ServerInfo
- Inherits:
-
Object
- Object
- IceGrid::ServerInfo
- Defined in:
- lib/IceGrid/Admin.rb
Instance Attribute Summary collapse
-
#application ⇒ Object
Returns the value of attribute application.
-
#descriptor ⇒ Object
Returns the value of attribute descriptor.
-
#node ⇒ Object
Returns the value of attribute node.
-
#revision ⇒ Object
Returns the value of attribute revision.
-
#sessionId ⇒ Object
Returns the value of attribute sessionId.
-
#uuid ⇒ Object
Returns the value of attribute uuid.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(application = '', uuid = '', revision = 0, node = '', descriptor = nil, sessionId = '') ⇒ ServerInfo
constructor
A new instance of ServerInfo.
- #inspect ⇒ Object
Constructor Details
#initialize(application = '', uuid = '', revision = 0, node = '', descriptor = nil, sessionId = '') ⇒ ServerInfo
Returns a new instance of ServerInfo.
185 186 187 188 189 190 191 192 |
# File 'lib/IceGrid/Admin.rb', line 185 def initialize(application='', uuid='', revision=0, node='', descriptor=nil, sessionId='') @application = application @uuid = uuid @revision = revision @node = node @descriptor = descriptor @sessionId = sessionId end |
Instance Attribute Details
#application ⇒ Object
Returns the value of attribute application.
224 225 226 |
# File 'lib/IceGrid/Admin.rb', line 224 def application @application end |
#descriptor ⇒ Object
Returns the value of attribute descriptor.
224 225 226 |
# File 'lib/IceGrid/Admin.rb', line 224 def descriptor @descriptor end |
#node ⇒ Object
Returns the value of attribute node.
224 225 226 |
# File 'lib/IceGrid/Admin.rb', line 224 def node @node end |
#revision ⇒ Object
Returns the value of attribute revision.
224 225 226 |
# File 'lib/IceGrid/Admin.rb', line 224 def revision @revision end |
#sessionId ⇒ Object
Returns the value of attribute sessionId.
224 225 226 |
# File 'lib/IceGrid/Admin.rb', line 224 def sessionId @sessionId end |
#uuid ⇒ Object
Returns the value of attribute uuid.
224 225 226 |
# File 'lib/IceGrid/Admin.rb', line 224 def uuid @uuid end |
Instance Method Details
#==(other) ⇒ Object
205 206 207 208 209 210 211 212 213 214 |
# File 'lib/IceGrid/Admin.rb', line 205 def ==(other) return false if !other.is_a? ::IceGrid::ServerInfo or @application != other.application or @uuid != other.uuid or @revision != other.revision or @node != other.node or @descriptor != other.descriptor or @sessionId != other.sessionId true end |
#eql?(other) ⇒ Boolean
216 217 218 |
# File 'lib/IceGrid/Admin.rb', line 216 def eql?(other) return other.class == self.class && other == self end |
#hash ⇒ Object
194 195 196 197 198 199 200 201 202 203 |
# File 'lib/IceGrid/Admin.rb', line 194 def hash _h = 0 _h = 5 * _h + @application.hash _h = 5 * _h + @uuid.hash _h = 5 * _h + @revision.hash _h = 5 * _h + @node.hash _h = 5 * _h + @descriptor.hash _h = 5 * _h + @sessionId.hash _h % 0x7fffffff end |
#inspect ⇒ Object
220 221 222 |
# File 'lib/IceGrid/Admin.rb', line 220 def inspect ::Ice::__stringify(self, T_ServerInfo) end |