Exception: JSONError::Errors::DisallowedPropertySetting
- Inherits:
-
StandardError
- Object
- StandardError
- JSONError::Errors::DisallowedPropertySetting
- Defined in:
- lib/json_error/errors/disallowed_property_setting.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ DisallowedPropertySetting
constructor
A new instance of DisallowedPropertySetting.
Constructor Details
#initialize(options = {}) ⇒ DisallowedPropertySetting
Returns a new instance of DisallowedPropertySetting.
4 5 6 7 8 |
# File 'lib/json_error/errors/disallowed_property_setting.rb', line 4 def initialize( = {}) property = .fetch(:property) klass = .fetch(:class) super("Setting #{property} property is disallowed for #{klass}.") end |