Class: IceGrid::ApplicationUpdateInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/IceGrid/Admin.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(updateTime = 0, updateUser = '', revision = 0, descriptor = ::IceGrid::ApplicationUpdateDescriptor.new) ⇒ ApplicationUpdateInfo

Returns a new instance of ApplicationUpdateInfo.



447
448
449
450
451
452
# File 'lib/IceGrid/Admin.rb', line 447

def initialize(updateTime=0, updateUser='', revision=0, descriptor=::IceGrid::ApplicationUpdateDescriptor.new)
    @updateTime = updateTime
    @updateUser = updateUser
    @revision = revision
    @descriptor = descriptor
end

Instance Attribute Details

#descriptorObject

Returns the value of attribute descriptor.



480
481
482
# File 'lib/IceGrid/Admin.rb', line 480

def descriptor
  @descriptor
end

#revisionObject

Returns the value of attribute revision.



480
481
482
# File 'lib/IceGrid/Admin.rb', line 480

def revision
  @revision
end

#updateTimeObject

Returns the value of attribute updateTime.



480
481
482
# File 'lib/IceGrid/Admin.rb', line 480

def updateTime
  @updateTime
end

#updateUserObject

Returns the value of attribute updateUser.



480
481
482
# File 'lib/IceGrid/Admin.rb', line 480

def updateUser
  @updateUser
end

Instance Method Details

#==(other) ⇒ Object



463
464
465
466
467
468
469
470
# File 'lib/IceGrid/Admin.rb', line 463

def ==(other)
    return false if !other.is_a? ::IceGrid::ApplicationUpdateInfo or
        @updateTime != other.updateTime or
        @updateUser != other.updateUser or
        @revision != other.revision or
        @descriptor != other.descriptor
    true
end

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


472
473
474
# File 'lib/IceGrid/Admin.rb', line 472

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

#hashObject



454
455
456
457
458
459
460
461
# File 'lib/IceGrid/Admin.rb', line 454

def hash
    _h = 0
    _h = 5 * _h + @updateTime.hash
    _h = 5 * _h + @updateUser.hash
    _h = 5 * _h + @revision.hash
    _h = 5 * _h + @descriptor.hash
    _h % 0x7fffffff
end

#inspectObject



476
477
478
# File 'lib/IceGrid/Admin.rb', line 476

def inspect
    ::Ice::__stringify(self, T_ApplicationUpdateInfo)
end