Exception: ActiveVersioning::Errors::IncompatibleVersion

Inherits:
StandardError
  • Object
show all
Defined in:
lib/active_versioning/errors/incompatible_version.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(record, version) ⇒ IncompatibleVersion

Returns a new instance of IncompatibleVersion.



6
7
8
9
# File 'lib/active_versioning/errors/incompatible_version.rb', line 6

def initialize(record, version)
  @record  = record
  @version = version
end

Instance Attribute Details

#recordObject (readonly)

Returns the value of attribute record.



4
5
6
# File 'lib/active_versioning/errors/incompatible_version.rb', line 4

def record
  @record
end

#versionObject (readonly)

Returns the value of attribute version.



4
5
6
# File 'lib/active_versioning/errors/incompatible_version.rb', line 4

def version
  @version
end