Class: Vk::Schema::Generator::Methods

Inherits:
Common
  • Object
show all
Defined in:
lib/vk/schema/generator/methods.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/methods.rb', line 10

argument :schema

Instance Method Details

#create_methodsObject



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

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

#create_methods_autoloadObject



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

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