Class: Committee::Drivers::HyperSchema::Schema

Inherits:
Schema
  • Object
show all
Defined in:
lib/committee/drivers/hyper_schema/schema.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Schema

#supports_stub?

Instance Attribute Details

#driverObject

A link back to the derivative instance of Committee::Drivers::Driver that create this schema.



9
10
11
# File 'lib/committee/drivers/hyper_schema/schema.rb', line 9

def driver
  @driver
end

#routesObject

Returns the value of attribute routes.



11
12
13
# File 'lib/committee/drivers/hyper_schema/schema.rb', line 11

def routes
  @routes
end

#validator_optionObject (readonly)

Returns the value of attribute validator_option.



13
14
15
# File 'lib/committee/drivers/hyper_schema/schema.rb', line 13

def validator_option
  @validator_option
end

Instance Method Details

#build_router(options) ⇒ Object



15
16
17
18
# File 'lib/committee/drivers/hyper_schema/schema.rb', line 15

def build_router(options)
  @validator_option = Committee::SchemaValidator::Option.new(options, self, :hyper_schema)
  Committee::SchemaValidator::HyperSchema::Router.new(self, @validator_option)
end