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

Inherits:
Schema
  • Object
show all
Defined in:
lib/committee/drivers/hyper_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 instace of Committee::Drivers::Driver that create this schema.



126
127
128
# File 'lib/committee/drivers/hyper_schema.rb', line 126

def driver
  @driver
end

#routesObject

Returns the value of attribute routes.



128
129
130
# File 'lib/committee/drivers/hyper_schema.rb', line 128

def routes
  @routes
end

#validator_optionObject (readonly)

Returns the value of attribute validator_option.



130
131
132
# File 'lib/committee/drivers/hyper_schema.rb', line 130

def validator_option
  @validator_option
end

Instance Method Details

#build_router(options) ⇒ Object



132
133
134
135
# File 'lib/committee/drivers/hyper_schema.rb', line 132

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