Class: Strum::CacheUtils::Search
- Inherits:
-
Object
- Object
- Strum::CacheUtils::Search
- Includes:
- Service
- Defined in:
- lib/strum/cache_utils/search.rb
Overview
Search entity
Instance Method Summary collapse
Instance Method Details
#audit ⇒ Object
12 13 14 15 |
# File 'lib/strum/cache_utils/search.rb', line 12 def audit required(:resource_code, :params) sliced(:resource_code, :params) end |
#call ⇒ Object
17 18 19 20 21 22 23 24 25 |
# File 'lib/strum/cache_utils/search.rb', line 17 def call Strum::Pipe.call(Strum::CacheUtils::BuildResourcesUrl, Strum::CacheUtils::SendRequest, Strum::Json::Deserializer, input: input) do |m| m.success { |responce| output(responce) } m.failure { |errors| add_errors(errors) } end end |