Sha256: a94c8838252d5d431f8749a3f6554ef17bb13ea716f0d70a2c376376242849b2

Contents?: true

Size: 276 Bytes

Versions: 5

Compression:

Stored size: 276 Bytes

Contents

module FlexCommerceApi
  module Error
    class RecordInvalid < Base
      attr_reader :record

      def initialize(record)
        @record = record
      end

      def message
        "Record Invalid - #{record.errors.full_messages.join(", ")}"
      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/record_invalid.rb
flex_commerce_api-0.8.2 lib/flex_commerce_api/error/record_invalid.rb
flex_commerce_api-0.8.1 lib/flex_commerce_api/error/record_invalid.rb
flex_commerce_api-0.7 lib/flex_commerce_api/error/record_invalid.rb
flex_commerce_api-0.6.57 lib/flex_commerce_api/error/record_invalid.rb