Class: Vk::Schema::Generator::Responses

Inherits:
Common
  • Object
show all
Defined in:
lib/vk/schema/generator/responses.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Common

create_definition, source_root

Instance Attribute Details

#schemaVk::Schema (readonly)

Returns:


10
# File 'lib/vk/schema/generator/responses.rb', line 10

argument :schema

Instance Method Details

#create_methodsObject


12
13
14
15
16
# File 'lib/vk/schema/generator/responses.rb', line 12

def create_methods
  schema.responses.each do |method|
    Generator::Response.start([method])
  end
end

#create_methods_autoloadObject


18
19
20
# File 'lib/vk/schema/generator/responses.rb', line 18

def create_methods_autoload
  overwrite_template('responses.tt', 'lib/vk/api/responses.rb')
end