Exception: Timeprice::UnsupportedSchemaVersion
- Defined in:
- lib/timeprice/errors.rb
Overview
Raised when a bundled data file declares a schema_version this gem doesn’t know how to parse (forward-compat guard).
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(version, path) ⇒ UnsupportedSchemaVersion
constructor
A new instance of UnsupportedSchemaVersion.
Constructor Details
#initialize(version, path) ⇒ UnsupportedSchemaVersion
Returns a new instance of UnsupportedSchemaVersion.
53 54 55 56 57 |
# File 'lib/timeprice/errors.rb', line 53 def initialize(version, path) @version = version @path = path super("Unsupported schema_version #{version.inspect} in #{path}") end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
51 52 53 |
# File 'lib/timeprice/errors.rb', line 51 def path @path end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
51 52 53 |
# File 'lib/timeprice/errors.rb', line 51 def version @version end |