Class: EvergreenHoldings::Item
- Inherits:
-
Object
- Object
- EvergreenHoldings::Item
- Defined in:
- lib/evergreen_holdings.rb
Overview
A physical copy of an item
Instance Attribute Summary collapse
-
#barcode ⇒ Object
readonly
Returns the value of attribute barcode.
-
#call_number ⇒ Object
readonly
Returns the value of attribute call_number.
-
#due_date ⇒ Object
readonly
Returns the value of attribute due_date.
-
#location ⇒ Object
Returns the value of attribute location.
-
#owning_lib ⇒ Object
Returns the value of attribute owning_lib.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ Item
constructor
A new instance of Item.
Constructor Details
#initialize(data = {}) ⇒ Item
Returns a new instance of Item.
229 230 231 232 233 |
# File 'lib/evergreen_holdings.rb', line 229 def initialize data = {} data.each do |k,v| instance_variable_set("@#{k}", v) unless v.nil? end end |
Instance Attribute Details
#barcode ⇒ Object (readonly)
Returns the value of attribute barcode.
228 229 230 |
# File 'lib/evergreen_holdings.rb', line 228 def @barcode end |
#call_number ⇒ Object (readonly)
Returns the value of attribute call_number.
228 229 230 |
# File 'lib/evergreen_holdings.rb', line 228 def call_number @call_number end |
#due_date ⇒ Object (readonly)
Returns the value of attribute due_date.
228 229 230 |
# File 'lib/evergreen_holdings.rb', line 228 def due_date @due_date end |
#location ⇒ Object
Returns the value of attribute location.
227 228 229 |
# File 'lib/evergreen_holdings.rb', line 227 def location @location end |
#owning_lib ⇒ Object
Returns the value of attribute owning_lib.
227 228 229 |
# File 'lib/evergreen_holdings.rb', line 227 def owning_lib @owning_lib end |
#status ⇒ Object
Returns the value of attribute status.
227 228 229 |
# File 'lib/evergreen_holdings.rb', line 227 def status @status end |