Class: RmsApiRuby::Product

Inherits:
Object
  • Object
show all
Defined in:
lib/rms_api_ruby/product.rb

Defined Under Namespace

Classes: Client

Class Method Summary collapse

Class Method Details

.search(args) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/rms_api_ruby/product.rb', line 6

def search(args)
  Flow.new.
    chain(response: :response) { Client.new(args).call }.
    on_dam { |error| handle_error(error) }.
    outflow.
    try(:response)
end