Class: UwCatalog::Item
- Inherits:
-
Object
- Object
- UwCatalog::Item
- Defined in:
- lib/uw_catalog/model/item.rb
Instance Attribute Summary collapse
-
#copy_number ⇒ Object
Returns the value of attribute copy_number.
-
#current_due_date ⇒ Object
Returns the value of attribute current_due_date.
-
#hold_recall_status_date ⇒ Object
Returns the value of attribute hold_recall_status_date.
-
#id ⇒ Object
Returns the value of attribute id.
-
#item_barcode ⇒ Object
Returns the value of attribute item_barcode.
-
#item_enum ⇒ Object
Returns the value of attribute item_enum.
-
#item_status ⇒ Object
Returns the value of attribute item_status.
-
#item_status_date ⇒ Object
Returns the value of attribute item_status_date.
-
#item_type_id ⇒ Object
Returns the value of attribute item_type_id.
-
#on_reserve ⇒ Object
Returns the value of attribute on_reserve.
Instance Method Summary collapse
- #==(another_item) ⇒ Object
-
#initialize(h = Hash.new) ⇒ Item
constructor
A new instance of Item.
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_number ⇒ Object
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_date ⇒ Object
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_date ⇒ Object
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 |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/uw_catalog/model/item.rb', line 3 def id @id end |
#item_barcode ⇒ Object
Returns the value of attribute item_barcode.
3 4 5 |
# File 'lib/uw_catalog/model/item.rb', line 3 def @item_barcode end |
#item_enum ⇒ Object
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_status ⇒ Object
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_date ⇒ Object
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_id ⇒ Object
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_reserve ⇒ Object
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 |