Class: Meta::JsonSchema::UnsupportedSchema

Inherits:
BaseSchema
  • Object
show all
Defined in:
lib/meta/json_schema/schemas/unsupported_schema.rb

Instance Attribute Summary collapse

Attributes inherited from BaseSchema

#options

Instance Method Summary collapse

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

#keyObject (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

#valueObject (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

Raises:



17
18
19
# File 'lib/meta/json_schema/schemas/unsupported_schema.rb', line 17

def filter(value, options)
  raise UnsupportedError, "δΈζ”―ζŒηš„ #{key}: #{value}}"
end

#filter?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/meta/json_schema/schemas/unsupported_schema.rb', line 13

def filter?
  false
end