Exception: ActiveVersioning::Errors::IncompatibleVersion
- Inherits:
-
StandardError
- Object
- StandardError
- ActiveVersioning::Errors::IncompatibleVersion
- Defined in:
- lib/active_versioning/errors/incompatible_version.rb
Instance Attribute Summary collapse
-
#record ⇒ Object
readonly
Returns the value of attribute record.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(record, version) ⇒ IncompatibleVersion
constructor
A new instance of IncompatibleVersion.
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
#record ⇒ Object (readonly)
Returns the value of attribute record.
4 5 6 |
# File 'lib/active_versioning/errors/incompatible_version.rb', line 4 def record @record end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
4 5 6 |
# File 'lib/active_versioning/errors/incompatible_version.rb', line 4 def version @version end |