Exception: Agreements::VersionNotCurrent

Inherits:
Error
  • Object
show all
Defined in:
lib/agreements/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_versionObject (readonly)

Returns the value of attribute current_version.



9
10
11
# File 'lib/agreements/errors.rb', line 9

def current_version
  @current_version
end