Class: Exlibris::Aleph::Item::DisplayMask

Inherits:
Object
  • Object
show all
Defined in:
lib/exlibris/aleph/item/display_mask.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value, mask) ⇒ DisplayMask

Returns a new instance of DisplayMask.



7
8
9
10
# File 'lib/exlibris/aleph/item/display_mask.rb', line 7

def initialize(value, mask)
  @value = value
  @mask = mask
end

Instance Attribute Details

#maskObject (readonly)

Returns the value of attribute mask.



5
6
7
# File 'lib/exlibris/aleph/item/display_mask.rb', line 5

def mask
  @mask
end

#valueObject (readonly)

Returns the value of attribute value.



5
6
7
# File 'lib/exlibris/aleph/item/display_mask.rb', line 5

def value
  @value
end

Instance Method Details

#==(other_object) ⇒ Object Also known as: eql?



12
13
14
# File 'lib/exlibris/aleph/item/display_mask.rb', line 12

def ==(other_object)
  other_object.instance_of?(self.class) && value == other_object.value
end