Class: IceGrid::DistributionDescriptor

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(icepatch = '', directories = nil) ⇒ DistributionDescriptor

Returns a new instance of DistributionDescriptor.



352
353
354
355
# File 'lib/IceGrid/Descriptor.rb', line 352

def initialize(icepatch='', directories=nil)
    @icepatch = icepatch
    @directories = directories
end

Instance Attribute Details

#directoriesObject

Returns the value of attribute directories.



379
380
381
# File 'lib/IceGrid/Descriptor.rb', line 379

def directories
  @directories
end

#icepatchObject

Returns the value of attribute icepatch.



379
380
381
# File 'lib/IceGrid/Descriptor.rb', line 379

def icepatch
  @icepatch
end

Instance Method Details

#==(other) ⇒ Object



364
365
366
367
368
369
# File 'lib/IceGrid/Descriptor.rb', line 364

def ==(other)
    return false if !other.is_a? ::IceGrid::DistributionDescriptor or
        @icepatch != other.icepatch or
        @directories != other.directories
    true
end

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


371
372
373
# File 'lib/IceGrid/Descriptor.rb', line 371

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

#hashObject



357
358
359
360
361
362
# File 'lib/IceGrid/Descriptor.rb', line 357

def hash
    _h = 0
    _h = 5 * _h + @icepatch.hash
    _h = 5 * _h + @directories.hash
    _h % 0x7fffffff
end

#inspectObject



375
376
377
# File 'lib/IceGrid/Descriptor.rb', line 375

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