Class: Meta::JsonSchema::UnsupportedSchema
- Inherits:
-
BaseSchema
- Object
- BaseSchema
- Meta::JsonSchema::UnsupportedSchema
- Defined in:
- lib/meta/json_schema/schemas/unsupported_schema.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from BaseSchema
Instance Method Summary collapse
- #filter(value, options) ⇒ Object
- #filter? ⇒ Boolean
-
#initialize(key, value) ⇒ UnsupportedSchema
constructor
A new instance of UnsupportedSchema.
Methods inherited from BaseSchema
#defined_scopes, #find_schema, #if?, #scoped, #staged, #to_schema, #to_schema_doc, #value?
Constructor Details
#initialize(key, value) ⇒ UnsupportedSchema
Returns a new instance of UnsupportedSchema.
8 9 10 11 |
# File 'lib/meta/json_schema/schemas/unsupported_schema.rb', line 8 def initialize(key, value) @key = key @value = value end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
6 7 8 |
# File 'lib/meta/json_schema/schemas/unsupported_schema.rb', line 6 def key @key end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
6 7 8 |
# File 'lib/meta/json_schema/schemas/unsupported_schema.rb', line 6 def value @value end |
Instance Method Details
#filter(value, options) ⇒ Object
17 18 19 |
# File 'lib/meta/json_schema/schemas/unsupported_schema.rb', line 17 def filter(value, ) raise UnsupportedError, "δΈζ―ζη #{key}: #{value}}" end |
#filter? ⇒ Boolean
13 14 15 |
# File 'lib/meta/json_schema/schemas/unsupported_schema.rb', line 13 def filter? false end |