class Newgistics::ResponseHandlers::CancelManifest

Attributes

manifest[R]

Public Class Methods

new(manifest) click to toggle source
# File lib/newgistics/response_handlers/cancel_manifest.rb, line 6
def initialize(manifest)
  @manifest = manifest
end

Public Instance Methods

handle(response) click to toggle source
# File lib/newgistics/response_handlers/cancel_manifest.rb, line 10
def handle(response)
  PostErrors.new(manifest).handle(response)
  manifest.status = 'CANCELED' if manifest.errors.empty?
end