Method: Wpxf::Cli::Loot#find_loot_item
- Defined in:
- lib/wpxf/cli/loot.rb
#find_loot_item(id) ⇒ Object
41 42 43 44 45 46 47 48 49 |
# File 'lib/wpxf/cli/loot.rb', line 41 def find_loot_item(id) item = Wpxf::Models::LootItem.first( id: id.to_i, workspace: active_workspace ) return item unless item.nil? print_bad "Could not find loot item #{id} in the current workspace" end |