Class: Foobara::RemoteGenerator::Services::EntityVariantsGenerator
- Inherits:
-
EntityGenerator
- Object
- FilesGenerator
- TypescriptFromManifestBaseGenerator
- TypeGenerator
- ModelGenerator
- EntityGenerator
- Foobara::RemoteGenerator::Services::EntityVariantsGenerator
- Defined in:
- foobara-typescript-remote-command-generator-0.0.18/src/remote_generator/services/entity_variants_generator.rb
Constant Summary
Constants included from TruncatedInspect
Instance Attribute Summary
Attributes inherited from FilesGenerator
#belongs_to_dependency_group, #relevant_manifest
Instance Method Summary collapse
- #aggregate_entity_generator ⇒ Object
- #atom_entity_generator ⇒ Object
- #dependencies ⇒ Object
- #entity_generator ⇒ Object
- #loaded_entity_generator ⇒ Object
- #target_path ⇒ Object
- #template_path ⇒ Object
- #unloaded_entity_generator ⇒ Object
Methods inherited from EntityGenerator
#association_property_paths_ts, #attribute_names, #entity_name, #entity_name_downcase, #entity_short_name, #primary_key_name, #primary_key_ts_type
Methods inherited from ModelGenerator
#model_name, #model_name_downcase, #model_prefix, #model_short_name, new
Methods inherited from TypeGenerator
#aggregate_attributes_ts_type, #atom_attributes_ts_type, #attribute_names, #attributes_type_ts_type, #custom_type_generators, #model_generators, new, #scoped_full_path, #type_guts, #type_name, #type_name_downcase, #type_prefix, #type_short_name
Methods inherited from TypescriptFromManifestBaseGenerator
#==, #attributes_to_ts_type, #custom_type_to_ts_type_name, #dependency_group, #dependency_roots, #foobara_type_to_ts_type, #hash, #import_destructure, #import_path, #import_path_array, #initialize, manifest_to_generator_classes, #model_to_ts_model_name, #parent, #templates_dir, #ts_instance_full_name, #ts_instance_full_path, #ts_instance_path, #ts_type_full_path, #value_to_ts_value
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, #template_string, #templates_dir
Methods included from TruncatedInspect
Constructor Details
This class inherits a constructor from Foobara::RemoteGenerator::Services::TypescriptFromManifestBaseGenerator
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Foobara::FilesGenerator
Instance Method Details
#aggregate_entity_generator ⇒ Object
33 34 35 |
# File 'foobara-typescript-remote-command-generator-0.0.18/src/remote_generator/services/entity_variants_generator.rb', line 33 def aggregate_entity_generator AggregateEntityGenerator.new(entity_manifest) end |
#atom_entity_generator ⇒ Object
29 30 31 |
# File 'foobara-typescript-remote-command-generator-0.0.18/src/remote_generator/services/entity_variants_generator.rb', line 29 def atom_entity_generator AtomEntityGenerator.new(entity_manifest) end |
#dependencies ⇒ Object
37 38 39 40 41 42 43 44 45 |
# File 'foobara-typescript-remote-command-generator-0.0.18/src/remote_generator/services/entity_variants_generator.rb', line 37 def dependencies Set[ entity_generator, unloaded_entity_generator, loaded_entity_generator, atom_entity_generator, aggregate_entity_generator ] end |
#entity_generator ⇒ Object
17 18 19 |
# File 'foobara-typescript-remote-command-generator-0.0.18/src/remote_generator/services/entity_variants_generator.rb', line 17 def entity_generator EntityGenerator.new(entity_manifest) end |
#loaded_entity_generator ⇒ Object
25 26 27 |
# File 'foobara-typescript-remote-command-generator-0.0.18/src/remote_generator/services/entity_variants_generator.rb', line 25 def loaded_entity_generator LoadedEntityGenerator.new(entity_manifest) end |
#target_path ⇒ Object
7 8 9 10 11 |
# File 'foobara-typescript-remote-command-generator-0.0.18/src/remote_generator/services/entity_variants_generator.rb', line 7 def target_path *prefix, _entity_name, _file = super [*prefix, "#{entity_short_name}.ts"] end |
#template_path ⇒ Object
13 14 15 |
# File 'foobara-typescript-remote-command-generator-0.0.18/src/remote_generator/services/entity_variants_generator.rb', line 13 def template_path "EntityVariants.ts.erb" end |
#unloaded_entity_generator ⇒ Object
21 22 23 |
# File 'foobara-typescript-remote-command-generator-0.0.18/src/remote_generator/services/entity_variants_generator.rb', line 21 def unloaded_entity_generator UnloadedEntityGenerator.new(entity_manifest) end |