Class: EvergreenHoldings::Item

Inherits:
Object
  • Object
show all
Defined in:
lib/evergreen_holdings.rb

Overview

A physical copy of an item

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#barcodeObject (readonly)

Returns the value of attribute barcode.



228
229
230
# File 'lib/evergreen_holdings.rb', line 228

def barcode
  @barcode
end

#call_numberObject (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_dateObject (readonly)

Returns the value of attribute due_date.



228
229
230
# File 'lib/evergreen_holdings.rb', line 228

def due_date
  @due_date
end

#locationObject

Returns the value of attribute location.



227
228
229
# File 'lib/evergreen_holdings.rb', line 227

def location
  @location
end

#owning_libObject

Returns the value of attribute owning_lib.



227
228
229
# File 'lib/evergreen_holdings.rb', line 227

def owning_lib
  @owning_lib
end

#statusObject

Returns the value of attribute status.



227
228
229
# File 'lib/evergreen_holdings.rb', line 227

def status
  @status
end