Sha256: 2751894811b33425af70c78b58119a8b4c5d9d8a6a952696f18bf5d573d85680

Contents?: true

Size: 445 Bytes

Versions: 94

Compression:

Stored size: 445 Bytes

Contents

# frozen_string_literal: true

module Files
  class Errors
    attr_reader :options, :attributes

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

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

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

Version data entries

94 entries across 94 versions & 1 rubygems

Version Path
files.com-1.1.180 lib/files.com/models/errors.rb
files.com-1.1.179 lib/files.com/models/errors.rb
files.com-1.1.178 lib/files.com/models/errors.rb
files.com-1.1.177 lib/files.com/models/errors.rb
files.com-1.1.176 lib/files.com/models/errors.rb
files.com-1.1.175 lib/files.com/models/errors.rb
files.com-1.1.174 lib/files.com/models/errors.rb
files.com-1.1.173 lib/files.com/models/errors.rb
files.com-1.1.172 lib/files.com/models/errors.rb
files.com-1.1.171 lib/files.com/models/errors.rb
files.com-1.1.170 lib/files.com/models/errors.rb
files.com-1.1.169 lib/files.com/models/errors.rb
files.com-1.1.168 lib/files.com/models/errors.rb
files.com-1.1.167 lib/files.com/models/errors.rb
files.com-1.1.166 lib/files.com/models/errors.rb
files.com-1.1.165 lib/files.com/models/errors.rb
files.com-1.1.164 lib/files.com/models/errors.rb
files.com-1.1.163 lib/files.com/models/errors.rb
files.com-1.1.162 lib/files.com/models/errors.rb
files.com-1.1.161 lib/files.com/models/errors.rb