-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure NullItem inherits from Item and SimpleDelegator
Co-authored-by: Isha Sinha <ishasinha1@users.noreply.github.com> Co-authored-by: Jane Sandberg <sandbergja@users.noreply.github.com> Co-authored-by: Liz Garcia <lizgarciao@users.noreply.github.com> Co-authored-by: Ryan Laddusaw <rladdusaw@users.noreply.github.com>
- Loading branch information
1 parent
54e0e45
commit 3c31b5e
Showing
6 changed files
with
129 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
# frozen_string_literal: true | ||
class Requests::Requestable | ||
class NullItem < Requests::Requestable::Item | ||
def nil? | ||
true | ||
end | ||
|
||
def present? | ||
false | ||
end | ||
|
||
def blank? | ||
true | ||
end | ||
|
||
def item_data? | ||
false | ||
end | ||
|
||
def pick_up_location_id | ||
"" | ||
end | ||
|
||
def pick_up_location_code | ||
"" | ||
end | ||
|
||
def item_type | ||
"" | ||
end | ||
|
||
def enum_value | ||
"" | ||
end | ||
|
||
def cron_value | ||
"" | ||
end | ||
|
||
def copy_value | ||
"" | ||
end | ||
|
||
def temp_loc? | ||
"" | ||
end | ||
|
||
def in_resource_sharing? | ||
false | ||
end | ||
|
||
def on_reserve? | ||
false | ||
end | ||
|
||
def inaccessible? | ||
false | ||
end | ||
|
||
def hold_request? | ||
false | ||
end | ||
|
||
def enumerated? | ||
false | ||
end | ||
|
||
def item_type_non_circulate? | ||
false | ||
end | ||
|
||
def id | ||
nil | ||
end | ||
|
||
def use_statement | ||
'' | ||
end | ||
|
||
def collection_code | ||
'' | ||
end | ||
|
||
def missing? | ||
false | ||
end | ||
|
||
def charged? | ||
false | ||
end | ||
|
||
def status_label | ||
'' | ||
end | ||
|
||
def status | ||
'Unavailable' | ||
end | ||
|
||
def available? | ||
false | ||
end | ||
|
||
def barcode? | ||
false | ||
end | ||
|
||
def barcode | ||
'' | ||
end | ||
|
||
def partner_holding? | ||
false | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters