Sha256: 8fdcdd65f4282419fe2c6e24d695aed9d83b47df2d6c09b2a0e7e43567723f0d

Contents?: true

Size: 246 Bytes

Versions: 5

Compression:

Stored size: 246 Bytes

Contents

module FlexCommerceApi
  module Error
    class BadRequest < ClientError
      def message
        msg = response_env[:body]["errors"].map {|e| "#{e['title']} - #{e['detail']}"}.join(" , ")
        "Bad Request #{msg}"
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
flex_commerce_api-0.8.3 lib/flex_commerce_api/error/bad_request.rb
flex_commerce_api-0.8.2 lib/flex_commerce_api/error/bad_request.rb
flex_commerce_api-0.8.1 lib/flex_commerce_api/error/bad_request.rb
flex_commerce_api-0.7 lib/flex_commerce_api/error/bad_request.rb
flex_commerce_api-0.6.57 lib/flex_commerce_api/error/bad_request.rb