Class: Vk::Schema::Generator

Inherits:
Object
  • Object
show all
Defined in:
lib/vk/schema/generator.rb,
lib/vk/schema/generator/type.rb,
lib/vk/schema/generator/types.rb,
lib/vk/schema/generator/client.rb,
lib/vk/schema/generator/common.rb,
lib/vk/schema/generator/errors.rb,
lib/vk/schema/generator/method.rb,
lib/vk/schema/generator/object.rb,
lib/vk/schema/generator/methods.rb,
lib/vk/schema/generator/objects.rb,
lib/vk/schema/generator/response.rb,
lib/vk/schema/generator/responses.rb

Defined Under Namespace

Classes: Client, Common, Errors, Method, Methods, Object, Objects, Response, Responses, Type, Types

Instance Method Summary collapse

Instance Method Details

#callObject


26
27
28
29
30
31
32
33
34
35
# File 'lib/vk/schema/generator.rb', line 26

def call
  options = {}
  Generator::Types.start([schema], options)
  Generator::Errors.start([schema], options)
  Generator::Objects.start([schema], options)
  Generator::Responses.start([schema], options)
  Generator::Methods.start([schema], options)
  Generator::Client.start([schema], options)
  system('bin/rubocop -a lib/vk/api')
end

#schemaVk::Schema

Returns:


22
23
24
# File 'lib/vk/schema/generator.rb', line 22

def schema
  @schema ||= Schema.new
end