module Updox::Models::Extensions::Exists
Public Instance Methods
exists?(item_id, account_id: , cached_query: nil)
click to toggle source
# File lib/updox/models/extensions/exists.rb, line 5 def exists?(item_id, account_id: , cached_query: nil) raise UpdoxException.new('Not implemented on this model.') unless self.respond_to?(:find) opts = { account_id: account_id } opts[:cached_query] = cached_query unless cached_query.nil? response = self.find(item_id, **opts) false == response.nil? end