Class: EvergreenHoldings::Item
- Inherits:
-
Object
- Object
- EvergreenHoldings::Item
- Defined in:
- lib/evergreen_holdings.rb
Instance Attribute Summary collapse
-
#barcode ⇒ Object
readonly
Returns the value of attribute barcode.
-
#call_number ⇒ Object
readonly
Returns the value of attribute call_number.
-
#location ⇒ Object
Returns the value of attribute location.
-
#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.
130 131 132 133 134 |
# File 'lib/evergreen_holdings.rb', line 130 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.
129 130 131 |
# File 'lib/evergreen_holdings.rb', line 129 def end |
#call_number ⇒ Object (readonly)
Returns the value of attribute call_number.
129 130 131 |
# File 'lib/evergreen_holdings.rb', line 129 def call_number @call_number end |
#location ⇒ Object
Returns the value of attribute location.
128 129 130 |
# File 'lib/evergreen_holdings.rb', line 128 def location @location end |
#status ⇒ Object
Returns the value of attribute status.
128 129 130 |
# File 'lib/evergreen_holdings.rb', line 128 def status @status end |