Class: Exlibris::Aleph::Item::CirculationPolicy::Display
- Inherits:
-
Object
- Object
- Exlibris::Aleph::Item::CirculationPolicy::Display
- Defined in:
- lib/exlibris/aleph/item/circulation_policy/display.rb
Instance Attribute Summary collapse
-
#mask ⇒ Object
readonly
Returns the value of attribute mask.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value, mask = nil) ⇒ Display
constructor
A new instance of Display.
Constructor Details
#initialize(value, mask = nil) ⇒ Display
Returns a new instance of Display.
8 9 10 11 |
# File 'lib/exlibris/aleph/item/circulation_policy/display.rb', line 8 def initialize(value, mask=nil) @value = value @mask = (mask || value) end |
Instance Attribute Details
#mask ⇒ Object (readonly)
Returns the value of attribute mask.
6 7 8 |
# File 'lib/exlibris/aleph/item/circulation_policy/display.rb', line 6 def mask @mask end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
6 7 8 |
# File 'lib/exlibris/aleph/item/circulation_policy/display.rb', line 6 def value @value end |