Class: RmsApiRuby::Items

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

Defined Under Namespace

Classes: Client

Class Method Summary collapse

Class Method Details

.update(args) ⇒ Object



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

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