Sha256: 2751894811b33425af70c78b58119a8b4c5d9d8a6a952696f18bf5d573d85680

Contents?: true

Size: 445 Bytes

Versions: 95

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

95 entries across 95 versions & 1 rubygems

Version Path
files.com-1.1.161 lib/files.com/models/errors.rb
files.com-1.1.160 lib/files.com/models/errors.rb
files.com-1.1.159 lib/files.com/models/errors.rb
files.com-1.1.158 lib/files.com/models/errors.rb
files.com-1.1.157 lib/files.com/models/errors.rb
files.com-1.1.156 lib/files.com/models/errors.rb
files.com-1.1.155 lib/files.com/models/errors.rb
files.com-1.1.154 lib/files.com/models/errors.rb
files.com-1.1.153 lib/files.com/models/errors.rb
files.com-1.1.152 lib/files.com/models/errors.rb
files.com-1.1.151 lib/files.com/models/errors.rb
files.com-1.1.150 lib/files.com/models/errors.rb
files.com-1.1.149 lib/files.com/models/errors.rb
files.com-1.1.148 lib/files.com/models/errors.rb
files.com-1.1.147 lib/files.com/models/errors.rb
files.com-1.1.146 lib/files.com/models/errors.rb
files.com-1.1.145 lib/files.com/models/errors.rb
files.com-1.1.144 lib/files.com/models/errors.rb
files.com-1.1.143 lib/files.com/models/errors.rb
files.com-1.1.142 lib/files.com/models/errors.rb