Class: UwCatalog::Item

Inherits:
Object
  • Object
show all
Defined in:
lib/uw_catalog/model/item.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(h = Hash.new) ⇒ Item

Returns a new instance of Item.



7
8
9
# File 'lib/uw_catalog/model/item.rb', line 7

def initialize(h=Hash.new)
  h.each {|k,v| send("#{k}=",v)}
end

Instance Attribute Details

#copy_numberObject

Returns the value of attribute copy_number.



3
4
5
# File 'lib/uw_catalog/model/item.rb', line 3

def copy_number
  @copy_number
end

#current_due_dateObject

Returns the value of attribute current_due_date.



3
4
5
# File 'lib/uw_catalog/model/item.rb', line 3

def current_due_date
  @current_due_date
end

#hold_recall_status_dateObject

Returns the value of attribute hold_recall_status_date.



3
4
5
# File 'lib/uw_catalog/model/item.rb', line 3

def hold_recall_status_date
  @hold_recall_status_date
end

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/uw_catalog/model/item.rb', line 3

def id
  @id
end

#item_barcodeObject

Returns the value of attribute item_barcode.



3
4
5
# File 'lib/uw_catalog/model/item.rb', line 3

def item_barcode
  @item_barcode
end

#item_enumObject

Returns the value of attribute item_enum.



3
4
5
# File 'lib/uw_catalog/model/item.rb', line 3

def item_enum
  @item_enum
end

#item_statusObject

Returns the value of attribute item_status.



3
4
5
# File 'lib/uw_catalog/model/item.rb', line 3

def item_status
  @item_status
end

#item_status_dateObject

Returns the value of attribute item_status_date.



3
4
5
# File 'lib/uw_catalog/model/item.rb', line 3

def item_status_date
  @item_status_date
end

#item_type_idObject

Returns the value of attribute item_type_id.



3
4
5
# File 'lib/uw_catalog/model/item.rb', line 3

def item_type_id
  @item_type_id
end

#on_reserveObject

Returns the value of attribute on_reserve.



3
4
5
# File 'lib/uw_catalog/model/item.rb', line 3

def on_reserve
  @on_reserve
end

Instance Method Details

#==(another_item) ⇒ Object



11
12
13
# File 'lib/uw_catalog/model/item.rb', line 11

def ==(another_item)
  self.id == another_item.id
end