Class: Foobara::RemoteGenerator::Generators::Auth::LogoutCommandGenerator

Inherits:
TypescriptFromManifestBaseGenerator show all
Defined in:
foobara-typescript-remote-command-generator-1.3.1/src/generators/auth/logout_command_generator.rb

Constant Summary

Constants included from TruncatedInspect

TruncatedInspect::MAX_LENGTH

Instance Attribute Summary

Attributes inherited from FilesGenerator

#belongs_to_dependency_group, #relevant_manifest

Instance Method Summary collapse

Methods inherited from TypescriptFromManifestBaseGenerator

#==, #attributes_to_ts_type, #auto_dirty_queries?, #collision_winners, #custom_type_to_ts_type_name, #dependency_group, #dependency_roots, #domain_name, #foobara_type_to_ts_type, #hash, #import_path, #import_path_array, #initialize, manifest_to_generator_classes, #model_to_ts_model_name, #organization_name, #parent, #path_to_root, #templates_dir, #ts_instance_full_name, #value_to_ts_value, #will_define

Methods inherited from FilesGenerator

#==, #absolute_template_path, #applicable?, #dependencies_to_generate, #eql?, #erb_template, #generate, generator_for, #generator_for, generators_for, #generators_for, #hash, #initialize, manifest_to_generator_classes, #method_missing, #path_to_root, #respond_to_missing?, #target_dir, #target_path, #template_string, #templates_dir

Methods included from TruncatedInspect

#inspect, truncating

Constructor Details

This class inherits a constructor from Foobara::RemoteGenerator::Generators::TypescriptFromManifestBaseGenerator

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Foobara::FilesGenerator

Instance Method Details

#dependenciesObject



22
23
24
# File 'src/generators/auth/logout_command_generator.rb', line 22

def dependencies
  super + [AccessTokensGenerator.new(relevant_manifest)]
end

#import_destructureObject



6
7
8
# File 'src/generators/auth/logout_command_generator.rb', line 6

def import_destructure
  ts_instance_path.first
end

#template_pathObject



18
19
20
# File 'src/generators/auth/logout_command_generator.rb', line 18

def template_path
  ["Foobara", "Auth", "LogoutCommand.ts.erb"]
end

#ts_instance_full_pathObject



14
15
16
# File 'src/generators/auth/logout_command_generator.rb', line 14

def ts_instance_full_path
  ["Foobara", "Auth", "LogoutCommand"]
end

#ts_instance_pathObject



10
11
12
# File 'src/generators/auth/logout_command_generator.rb', line 10

def ts_instance_path
  ["LogoutCommand"]
end