Sha256: ae546cc9b06098420dd932a5223920105569a9aecb4199dbd53a8949d526f1a5

Contents?: true

Size: 355 Bytes

Versions: 66

Compression:

Stored size: 355 Bytes

Contents

module Her
  class ErrorCollection
    attr_reader :metadata, :errors

    # @private
    def initialize(metadata={}, errors={})
      @metadata = metadata
      @errors = errors
    end

    def method_missing(method_sym, *arguments, &block)
      raise Her::Errors::ResponseError, "Cannot access collection, Request returned an error"
    end
  end
end

Version data entries

66 entries across 66 versions & 1 rubygems

Version Path
test_track_rails_client-7.1.2 vendor/gems/her/lib/her/error_collection.rb
test_track_rails_client-7.1.1 vendor/gems/her/lib/her/error_collection.rb
test_track_rails_client-7.0.0 vendor/gems/her/lib/her/error_collection.rb
test_track_rails_client-6.0.0 vendor/gems/her/lib/her/error_collection.rb
test_track_rails_client-5.0.1 vendor/gems/her/lib/her/error_collection.rb
test_track_rails_client-5.0.0 vendor/gems/her/lib/her/error_collection.rb
test_track_rails_client-4.0.2 vendor/gems/her/lib/her/error_collection.rb
test_track_rails_client-4.0.1 vendor/gems/her/lib/her/error_collection.rb
test_track_rails_client-4.0.0 vendor/gems/her/lib/her/error_collection.rb
test_track_rails_client-4.0.0.rc3 vendor/gems/her/lib/her/error_collection.rb
test_track_rails_client-4.0.0.rc2 vendor/gems/her/lib/her/error_collection.rb
test_track_rails_client-4.0.0.alpha35 vendor/gems/her/lib/her/error_collection.rb
test_track_rails_client-4.0.0.alpha34 vendor/gems/her/lib/her/error_collection.rb
test_track_rails_client-4.0.0.alpha33 vendor/gems/her/lib/her/error_collection.rb
test_track_rails_client-4.0.0.alpha32 vendor/gems/her/lib/her/error_collection.rb
test_track_rails_client-4.0.0.alpha31 vendor/gems/her/lib/her/error_collection.rb
test_track_rails_client-4.0.0.alpha30 vendor/gems/her/lib/her/error_collection.rb
test_track_rails_client-4.0.0.alpha29 vendor/gems/her/lib/her/error_collection.rb
test_track_rails_client-4.0.0.alpha28 vendor/gems/her/lib/her/error_collection.rb
test_track_rails_client-4.0.0.alpha27 vendor/gems/her/lib/her/error_collection.rb