Class: Exlibris::Aleph::Item::CirculationPolicy::Privileges
- Inherits:
-
Object
- Object
- Exlibris::Aleph::Item::CirculationPolicy::Privileges
- Defined in:
- lib/exlibris/aleph/item/circulation_policy/privileges.rb
Instance Attribute Summary collapse
-
#bookable ⇒ Object
readonly
Returns the value of attribute bookable.
-
#booking_hours ⇒ Object
readonly
Returns the value of attribute booking_hours.
-
#displayable ⇒ Object
readonly
Returns the value of attribute displayable.
-
#limit_hold ⇒ Object
readonly
Returns the value of attribute limit_hold.
-
#loanable ⇒ Object
readonly
Returns the value of attribute loanable.
-
#photocopyable ⇒ Object
readonly
Returns the value of attribute photocopyable.
-
#recallable ⇒ Object
readonly
Returns the value of attribute recallable.
-
#reloaning_limit ⇒ Object
readonly
Returns the value of attribute reloaning_limit.
-
#renewable ⇒ Object
readonly
Returns the value of attribute renewable.
-
#requestable ⇒ Object
readonly
Returns the value of attribute requestable.
-
#rush_recallable ⇒ Object
readonly
Returns the value of attribute rush_recallable.
-
#specific_item ⇒ Object
readonly
Returns the value of attribute specific_item.
Instance Method Summary collapse
- #always_requestable? ⇒ Boolean
- #bookable? ⇒ Boolean
- #displayable? ⇒ Boolean
-
#initialize(row) ⇒ Privileges
constructor
A new instance of Privileges.
- #limit_hold? ⇒ Boolean
- #loanable? ⇒ Boolean
- #photocopyable? ⇒ Boolean
- #recallable? ⇒ Boolean
- #renewable? ⇒ Boolean
- #requestable? ⇒ Boolean
- #rush_recallable? ⇒ Boolean
- #specific_item? ⇒ Boolean
Constructor Details
#initialize(row) ⇒ Privileges
Returns a new instance of Privileges.
10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/exlibris/aleph/item/circulation_policy/privileges.rb', line 10 def initialize(row) @loanable = row.loanable @renewable = row.renewable @requestable = row.requestable @photocopyable = row.photocopyable @displayable = row.displayable @specific_item = row.specific_item @limit_hold = row.limit_hold @recallable = row.recallable @rush_recallable = row.rush_recallable @reloaning_limit = row.reloaning_limit @bookable = row.bookable @booking_hours = row.booking_hours end |
Instance Attribute Details
#bookable ⇒ Object (readonly)
Returns the value of attribute bookable.
6 7 8 |
# File 'lib/exlibris/aleph/item/circulation_policy/privileges.rb', line 6 def bookable @bookable end |
#booking_hours ⇒ Object (readonly)
Returns the value of attribute booking_hours.
6 7 8 |
# File 'lib/exlibris/aleph/item/circulation_policy/privileges.rb', line 6 def booking_hours @booking_hours end |
#displayable ⇒ Object (readonly)
Returns the value of attribute displayable.
6 7 8 |
# File 'lib/exlibris/aleph/item/circulation_policy/privileges.rb', line 6 def displayable @displayable end |
#limit_hold ⇒ Object (readonly)
Returns the value of attribute limit_hold.
6 7 8 |
# File 'lib/exlibris/aleph/item/circulation_policy/privileges.rb', line 6 def limit_hold @limit_hold end |
#loanable ⇒ Object (readonly)
Returns the value of attribute loanable.
6 7 8 |
# File 'lib/exlibris/aleph/item/circulation_policy/privileges.rb', line 6 def loanable @loanable end |
#photocopyable ⇒ Object (readonly)
Returns the value of attribute photocopyable.
6 7 8 |
# File 'lib/exlibris/aleph/item/circulation_policy/privileges.rb', line 6 def photocopyable @photocopyable end |
#recallable ⇒ Object (readonly)
Returns the value of attribute recallable.
6 7 8 |
# File 'lib/exlibris/aleph/item/circulation_policy/privileges.rb', line 6 def recallable @recallable end |
#reloaning_limit ⇒ Object (readonly)
Returns the value of attribute reloaning_limit.
6 7 8 |
# File 'lib/exlibris/aleph/item/circulation_policy/privileges.rb', line 6 def reloaning_limit @reloaning_limit end |
#renewable ⇒ Object (readonly)
Returns the value of attribute renewable.
6 7 8 |
# File 'lib/exlibris/aleph/item/circulation_policy/privileges.rb', line 6 def renewable @renewable end |
#requestable ⇒ Object (readonly)
Returns the value of attribute requestable.
6 7 8 |
# File 'lib/exlibris/aleph/item/circulation_policy/privileges.rb', line 6 def requestable @requestable end |
#rush_recallable ⇒ Object (readonly)
Returns the value of attribute rush_recallable.
6 7 8 |
# File 'lib/exlibris/aleph/item/circulation_policy/privileges.rb', line 6 def rush_recallable @rush_recallable end |
#specific_item ⇒ Object (readonly)
Returns the value of attribute specific_item.
6 7 8 |
# File 'lib/exlibris/aleph/item/circulation_policy/privileges.rb', line 6 def specific_item @specific_item end |
Instance Method Details
#always_requestable? ⇒ Boolean
37 38 39 |
# File 'lib/exlibris/aleph/item/circulation_policy/privileges.rb', line 37 def always_requestable? requestable == 'C' end |
#bookable? ⇒ Boolean
65 66 67 |
# File 'lib/exlibris/aleph/item/circulation_policy/privileges.rb', line 65 def bookable? bookable == 'Y' end |
#displayable? ⇒ Boolean
45 46 47 |
# File 'lib/exlibris/aleph/item/circulation_policy/privileges.rb', line 45 def displayable? displayable == 'Y' end |
#limit_hold? ⇒ Boolean
53 54 55 |
# File 'lib/exlibris/aleph/item/circulation_policy/privileges.rb', line 53 def limit_hold? limit_hold == 'Y' end |
#loanable? ⇒ Boolean
25 26 27 |
# File 'lib/exlibris/aleph/item/circulation_policy/privileges.rb', line 25 def loanable? loanable == 'Y' end |
#photocopyable? ⇒ Boolean
41 42 43 |
# File 'lib/exlibris/aleph/item/circulation_policy/privileges.rb', line 41 def photocopyable? photocopyable == 'Y' end |
#recallable? ⇒ Boolean
57 58 59 |
# File 'lib/exlibris/aleph/item/circulation_policy/privileges.rb', line 57 def recallable? recallable == 'Y' end |
#renewable? ⇒ Boolean
29 30 31 |
# File 'lib/exlibris/aleph/item/circulation_policy/privileges.rb', line 29 def renewable? renewable == 'Y' end |
#requestable? ⇒ Boolean
33 34 35 |
# File 'lib/exlibris/aleph/item/circulation_policy/privileges.rb', line 33 def requestable? always_requestable? || requestable == 'Y' end |
#rush_recallable? ⇒ Boolean
61 62 63 |
# File 'lib/exlibris/aleph/item/circulation_policy/privileges.rb', line 61 def rush_recallable? rush_recallable == 'Y' end |
#specific_item? ⇒ Boolean
49 50 51 |
# File 'lib/exlibris/aleph/item/circulation_policy/privileges.rb', line 49 def specific_item? specific_item == 'Y' end |