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.



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

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.



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

def barcode
  @barcode
end

#call_numberObject (readonly)

Returns the value of attribute call_number.



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

def call_number
  @call_number
end

#due_dateObject (readonly)

Returns the value of attribute due_date.



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

def due_date
  @due_date
end

#locationObject

Returns the value of attribute location.



225
226
227
# File 'lib/evergreen_holdings.rb', line 225

def location
  @location
end

#owning_libObject

Returns the value of attribute owning_lib.



225
226
227
# File 'lib/evergreen_holdings.rb', line 225

def owning_lib
  @owning_lib
end

#statusObject

Returns the value of attribute status.



225
226
227
# File 'lib/evergreen_holdings.rb', line 225

def status
  @status
end