Class: Exlibris::Aleph::Item::CirculationPolicy::Privileges

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bookableObject (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_hoursObject (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

#displayableObject (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_holdObject (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

#loanableObject (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

#photocopyableObject (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

#recallableObject (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_limitObject (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

#renewableObject (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

#requestableObject (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_recallableObject (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_itemObject (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

Returns:

  • (Boolean)


37
38
39
# File 'lib/exlibris/aleph/item/circulation_policy/privileges.rb', line 37

def always_requestable?
  requestable == 'C'
end

#bookable?Boolean

Returns:

  • (Boolean)


65
66
67
# File 'lib/exlibris/aleph/item/circulation_policy/privileges.rb', line 65

def bookable?
  bookable == 'Y'
end

#displayable?Boolean

Returns:

  • (Boolean)


45
46
47
# File 'lib/exlibris/aleph/item/circulation_policy/privileges.rb', line 45

def displayable?
  displayable == 'Y'
end

#limit_hold?Boolean

Returns:

  • (Boolean)


53
54
55
# File 'lib/exlibris/aleph/item/circulation_policy/privileges.rb', line 53

def limit_hold?
  limit_hold == 'Y'
end

#loanable?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/exlibris/aleph/item/circulation_policy/privileges.rb', line 25

def loanable?
  loanable == 'Y'
end

#photocopyable?Boolean

Returns:

  • (Boolean)


41
42
43
# File 'lib/exlibris/aleph/item/circulation_policy/privileges.rb', line 41

def photocopyable?
  photocopyable == 'Y'
end

#recallable?Boolean

Returns:

  • (Boolean)


57
58
59
# File 'lib/exlibris/aleph/item/circulation_policy/privileges.rb', line 57

def recallable?
  recallable == 'Y'
end

#renewable?Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/exlibris/aleph/item/circulation_policy/privileges.rb', line 29

def renewable?
  renewable == 'Y'
end

#requestable?Boolean

Returns:

  • (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

Returns:

  • (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

Returns:

  • (Boolean)


49
50
51
# File 'lib/exlibris/aleph/item/circulation_policy/privileges.rb', line 49

def specific_item?
  specific_item == 'Y'
end