Class: EvergreenHoldings::Item

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#barcodeObject (readonly)

Returns the value of attribute barcode.



129
130
131
# File 'lib/evergreen_holdings.rb', line 129

def barcode
  @barcode
end

#call_numberObject (readonly)

Returns the value of attribute call_number.



129
130
131
# File 'lib/evergreen_holdings.rb', line 129

def call_number
  @call_number
end

#locationObject

Returns the value of attribute location.



128
129
130
# File 'lib/evergreen_holdings.rb', line 128

def location
  @location
end

#statusObject

Returns the value of attribute status.



128
129
130
# File 'lib/evergreen_holdings.rb', line 128

def status
  @status
end