Class: Vk::Schema::Generator::Responses
- Inherits:
-
Common
- Object
- Thor::Group
- Common
- Vk::Schema::Generator::Responses
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
10
|
# File 'lib/vk/schema/generator/responses.rb', line 10
argument :schema
|
Instance Method Details
#create_methods ⇒ Object
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_autoload ⇒ Object
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
|