Class: IceGrid::ApplicationInfo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Ice::Inspect_mixin

#inspect

Constructor Details

#initialize(uuid = '', createTime = 0, createUser = '', updateTime = 0, updateUser = '', revision = 0, descriptor = ::IceGrid::ApplicationDescriptor.new) ⇒ ApplicationInfo

Returns a new instance of ApplicationInfo.



359
360
361
362
363
364
365
366
367
# File 'lib/IceGrid/Admin.rb', line 359

def initialize(uuid='', createTime=0, createUser='', updateTime=0, updateUser='', revision=0, descriptor=::IceGrid::ApplicationDescriptor.new)
    @uuid = uuid
    @createTime = createTime
    @createUser = createUser
    @updateTime = updateTime
    @updateUser = updateUser
    @revision = revision
    @descriptor = descriptor
end

Instance Attribute Details

#createTimeObject

Returns the value of attribute createTime.



397
398
399
# File 'lib/IceGrid/Admin.rb', line 397

def createTime
  @createTime
end

#createUserObject

Returns the value of attribute createUser.



397
398
399
# File 'lib/IceGrid/Admin.rb', line 397

def createUser
  @createUser
end

#descriptorObject

Returns the value of attribute descriptor.



397
398
399
# File 'lib/IceGrid/Admin.rb', line 397

def descriptor
  @descriptor
end

#revisionObject

Returns the value of attribute revision.



397
398
399
# File 'lib/IceGrid/Admin.rb', line 397

def revision
  @revision
end

#updateTimeObject

Returns the value of attribute updateTime.



397
398
399
# File 'lib/IceGrid/Admin.rb', line 397

def updateTime
  @updateTime
end

#updateUserObject

Returns the value of attribute updateUser.



397
398
399
# File 'lib/IceGrid/Admin.rb', line 397

def updateUser
  @updateUser
end

#uuidObject

Returns the value of attribute uuid.



397
398
399
# File 'lib/IceGrid/Admin.rb', line 397

def uuid
  @uuid
end

Instance Method Details

#==(other) ⇒ Object



381
382
383
384
385
386
387
388
389
390
391
# File 'lib/IceGrid/Admin.rb', line 381

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

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


393
394
395
# File 'lib/IceGrid/Admin.rb', line 393

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

#hashObject



369
370
371
372
373
374
375
376
377
378
379
# File 'lib/IceGrid/Admin.rb', line 369

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