Sha256: 82949a18158014d4b3427e68e97f6304545ca454b033e6330a0798462b859bfe

Contents?: true

Size: 429 Bytes

Versions: 557

Compression:

Stored size: 429 Bytes

Contents

# frozen_string_literal: true

module Files
  class Errors
    attr_reader :options, :attributes

    def initialize(attributes = {}, options = {})
      @attributes = attributes || {}
      @options = options || {}
    end

    # array - A list of fields where errors occur
    def fields
      @attributes[:fields]
    end

    # array - A list of error messages
    def messages
      @attributes[:messages]
    end
  end
end

Version data entries

557 entries across 557 versions & 1 rubygems

Version Path
files.com-1.1.66 lib/files.com/models/errors.rb
files.com-1.1.65 lib/files.com/models/errors.rb
files.com-1.1.64 lib/files.com/models/errors.rb
files.com-1.1.63 lib/files.com/models/errors.rb
files.com-1.1.62 lib/files.com/models/errors.rb
files.com-1.1.61 lib/files.com/models/errors.rb
files.com-1.1.60 lib/files.com/models/errors.rb
files.com-1.1.59 lib/files.com/models/errors.rb
files.com-1.1.58 lib/files.com/models/errors.rb
files.com-1.1.57 lib/files.com/models/errors.rb
files.com-1.1.56 lib/files.com/models/errors.rb
files.com-1.1.55 lib/files.com/models/errors.rb
files.com-1.1.54 lib/files.com/models/errors.rb
files.com-1.1.53 lib/files.com/models/errors.rb
files.com-1.1.52 lib/files.com/models/errors.rb
files.com-1.1.51 lib/files.com/models/errors.rb
files.com-1.1.50 lib/files.com/models/errors.rb
files.com-1.1.49 lib/files.com/models/errors.rb
files.com-1.1.48 lib/files.com/models/errors.rb
files.com-1.1.47 lib/files.com/models/errors.rb