Class: IceGrid::ApplicationUpdateInfo

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(updateTime = 0, updateUser = '', revision = 0, descriptor = ::IceGrid::ApplicationUpdateDescriptor.new) ⇒ ApplicationUpdateInfo

Returns a new instance of ApplicationUpdateInfo.



406
407
408
409
410
411
# File 'ruby/IceGrid/Admin.rb', line 406

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.



435
436
437
# File 'ruby/IceGrid/Admin.rb', line 435

def descriptor
  @descriptor
end

#revisionObject

Returns the value of attribute revision.



435
436
437
# File 'ruby/IceGrid/Admin.rb', line 435

def revision
  @revision
end

#updateTimeObject

Returns the value of attribute updateTime.



435
436
437
# File 'ruby/IceGrid/Admin.rb', line 435

def updateTime
  @updateTime
end

#updateUserObject

Returns the value of attribute updateUser.



435
436
437
# File 'ruby/IceGrid/Admin.rb', line 435

def updateUser
  @updateUser
end

Instance Method Details

#==(other) ⇒ Object



422
423
424
425
426
427
428
429
# File 'ruby/IceGrid/Admin.rb', line 422

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)


431
432
433
# File 'ruby/IceGrid/Admin.rb', line 431

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

#hashObject



413
414
415
416
417
418
419
420
# File 'ruby/IceGrid/Admin.rb', line 413

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