Class: Vedeu::Registrar Private

Inherits:
Object
  • Object
show all
Includes:
Common
Defined in:
lib/vedeu/support/registrar.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

When the client application has defined interfaces to be used, the Registrar stores these interfaces into various repositories for later use.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Common

#defined_value?

Constructor Details

#initialize(attributes = {}) ⇒ Registrar

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Parameters:

  • attributes (Hash) (defaults to: {})


19
20
21
# File 'lib/vedeu/support/registrar.rb', line 19

def initialize(attributes = {})
  @attributes = attributes
end

Instance Attribute Details

#attributesObject (readonly, private)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



42
43
44
# File 'lib/vedeu/support/registrar.rb', line 42

def attributes
  @attributes
end

Class Method Details

.record(attributes = {}) ⇒ TrueClass|

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Parameters:

  • attributes (Hash) (defaults to: {})

Returns:

  • (TrueClass|)


13
14
15
# File 'lib/vedeu/support/registrar.rb', line 13

def self.record(attributes = {})
  new(attributes).record
end

Instance Method Details

#recordTrueClass|MissingRequired

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Adds the attributes to a variety of repositories to use later.

Returns:



26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/vedeu/support/registrar.rb', line 26

def record
  Vedeu::Buffers.add(attributes)

  Vedeu::Interfaces.add(attributes)

  Vedeu::Cursors.add(attributes)

  Vedeu::Groups.add(attributes)

  Vedeu::Focus.add(attributes)

  true
end