Sha256: ddf43991fda575ce147ba36df9e9eb40e5df34b00e0e1317f22952d77140dc00

Contents?: true

Size: 849 Bytes

Versions: 26

Compression:

Stored size: 849 Bytes

Contents

module Foobara
  module Manifest
    class Organization < BaseManifest
      self.category_symbol = :organization

      def organization_manifest
        relevant_manifest
      end

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

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

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

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

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

      def global?
        reference == "global_organization"
      end

      def organization_name
        scoped_name
      end

      def full_organization_name
        scoped_full_name
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
foobara-0.0.26 projects/manifest/src/foobara/manifest/organization.rb
foobara-0.0.25 projects/manifest/src/foobara/manifest/organization.rb
foobara-0.0.24 projects/manifest/src/foobara/manifest/organization.rb
foobara-0.0.23 projects/manifest/src/foobara/manifest/organization.rb
foobara-0.0.22 projects/manifest/src/foobara/manifest/organization.rb
foobara-0.0.21 projects/manifest/src/foobara/manifest/organization.rb
foobara-0.0.20 projects/manifest/src/foobara/manifest/organization.rb
foobara-0.0.19 projects/manifest/src/foobara/manifest/organization.rb
foobara-0.0.18 projects/manifest/src/foobara/manifest/organization.rb
foobara-0.0.17 projects/manifest/src/foobara/manifest/organization.rb
foobara-0.0.16 projects/manifest/src/foobara/manifest/organization.rb
foobara-0.0.15 projects/manifest/src/foobara/manifest/organization.rb
foobara-0.0.14 projects/manifest/src/foobara/manifest/organization.rb
foobara-0.0.13 projects/manifest/src/foobara/manifest/organization.rb
foobara-0.0.12 projects/manifest/src/foobara/manifest/organization.rb
foobara-0.0.11 projects/manifest/src/foobara/manifest/organization.rb
foobara-0.0.10 projects/manifest/src/foobara/manifest/organization.rb
foobara-0.0.9 projects/manifest/src/foobara/manifest/organization.rb
foobara-0.0.8 projects/manifest/src/foobara/manifest/organization.rb
foobara-0.0.7 projects/manifest/src/foobara/manifest/organization.rb