Sha256: 80c12fb9aa0703f5d525194276f0c27fcdb17232ba7a0ad466d197d7876f5b6a

Contents?: true

Size: 381 Bytes

Versions: 7

Compression:

Stored size: 381 Bytes

Contents

# frozen_string_literal: true
require "virtus"

class ActiveRecordSchemaScrapper
  if defined?(ActiveMocker::ErrorObject)
    ErrorObject = Class.new(ActiveMocker::ErrorObject)
  else
    class ErrorObject
      include Virtus.model
      attribute :message
      attribute :level
      attribute :original_error
      attribute :type
      attribute :class_name
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
active_record_schema_scrapper-0.9.0 lib/active_record_schema_scrapper/object_error.rb
active_record_schema_scrapper-0.8.0 lib/active_record_schema_scrapper/object_error.rb
active_record_schema_scrapper-0.6.1 lib/active_record_schema_scrapper/object_error.rb
active_record_schema_scrapper-0.6.0 lib/active_record_schema_scrapper/object_error.rb
active_record_schema_scrapper-0.5.0 lib/active_record_schema_scrapper/object_error.rb
active_record_schema_scrapper-0.4.0 lib/active_record_schema_scrapper/object_error.rb
active_record_schema_scrapper-0.3.0 lib/active_record_schema_scrapper/object_error.rb