Class: Foobara::Manifest::Organization

Inherits:
BaseManifest show all
Defined in:
foobara-0.0.110/projects/manifest/src/foobara/manifest/organization.rb

Constant Summary

Constants included from TruncatedInspect

TruncatedInspect::MAX_LENGTH

Instance Attribute Summary

Attributes inherited from BaseManifest

#path, #root_manifest

Instance Method Summary collapse

Methods inherited from BaseManifest

#==, #[], category_to_manifest_class, #domain, #eql?, #find_type, #global_domain, #global_organization, #hash, #initialize, #key?, #method_missing, optional_key, #optional_key?, optional_key_defaults, optional_keys, #organization, #parent, #parent_category, #parent_name, #relevant_manifest, #respond_to_missing?, #scoped_category

Methods included from TruncatedInspect

#inspect, truncating

Constructor Details

This class inherits a constructor from Foobara::Manifest::BaseManifest

Dynamic Method Handling

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

Instance Method Details

#commandsObject



16
17
18
# File 'foobara-0.0.110/projects/manifest/src/foobara/manifest/organization.rb', line 16

def commands
  domains.map(&:commands).flatten
end

#domainsObject



10
11
12
13
14
# File 'foobara-0.0.110/projects/manifest/src/foobara/manifest/organization.rb', line 10

def domains
  @domains ||= DataPath.value_at(:domains, organization_manifest).map do |key|
    Domain.new(root_manifest, [:domain, key])
  end
end

#entitiesObject



24
25
26
# File 'foobara-0.0.110/projects/manifest/src/foobara/manifest/organization.rb', line 24

def entities
  domains.map(&:entities).flatten
end

#full_organization_nameObject



40
41
42
# File 'foobara-0.0.110/projects/manifest/src/foobara/manifest/organization.rb', line 40

def full_organization_name
  scoped_full_name
end

#global?Boolean

Returns:

  • (Boolean)


32
33
34
# File 'foobara-0.0.110/projects/manifest/src/foobara/manifest/organization.rb', line 32

def global?
  reference == "global_organization"
end

#modelsObject



28
29
30
# File 'foobara-0.0.110/projects/manifest/src/foobara/manifest/organization.rb', line 28

def models
  domains.map(&:models).flatten
end

#organization_manifestObject



6
7
8
# File 'foobara-0.0.110/projects/manifest/src/foobara/manifest/organization.rb', line 6

def organization_manifest
  relevant_manifest
end

#organization_nameObject



36
37
38
# File 'foobara-0.0.110/projects/manifest/src/foobara/manifest/organization.rb', line 36

def organization_name
  scoped_name
end

#typesObject



20
21
22
# File 'foobara-0.0.110/projects/manifest/src/foobara/manifest/organization.rb', line 20

def types
  domains.map(&:types).flatten
end