Exception: Agreements::VersionNotCurrent
- Defined in:
- lib/agreements/errors.rb
Instance Attribute Summary collapse
-
#current_version ⇒ Object
readonly
Returns the value of attribute current_version.
Instance Method Summary collapse
-
#initialize(current_version) ⇒ VersionNotCurrent
constructor
A new instance of VersionNotCurrent.
Constructor Details
#initialize(current_version) ⇒ VersionNotCurrent
Returns a new instance of VersionNotCurrent.
11 12 13 14 |
# File 'lib/agreements/errors.rb', line 11 def initialize(current_version) @current_version = current_version super("The submitted agreement version is not current") end |
Instance Attribute Details
#current_version ⇒ Object (readonly)
Returns the value of attribute current_version.
9 10 11 |
# File 'lib/agreements/errors.rb', line 9 def current_version @current_version end |