Class: Committee::ResponseGenerator

Inherits:
Object
  • Object
show all
Defined in:
lib/committee/response_generator.rb

Instance Method Summary collapse

Constructor Details

#initialize(schema, type_schema, link_schema) ⇒ ResponseGenerator

Returns a new instance of ResponseGenerator.



3
4
5
6
7
# File 'lib/committee/response_generator.rb', line 3

def initialize(schema, type_schema, link_schema)
  @schema = schema
  @type_schema = type_schema
  @link_schema = link_schema
end

Instance Method Details

#callObject



9
10
11
# File 'lib/committee/response_generator.rb', line 9

def call
  generate_properties(@type_schema)
end