Class: Vk::Schema::Generator::Objects

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

argument :schema

Instance Method Details

#create_modelsObject


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

def create_models
  schema.objects.each do |object|
    Generator::Object.start([object])
  end
end

#create_models_autoloadObject


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

def create_models_autoload
  overwrite_template('objects.tt', 'lib/vk/api/objects.rb')
end