Class: Core::Services::Registry
- Inherits:
-
Object
- Object
- Core::Services::Registry
- Defined in:
- lib/core/services/registry.rb
Overview
The registry holds references to all the services accessible in the library. To access all services and be able to manage resources easily, just instanciate the
Instance Attribute Summary collapse
-
#accounts ⇒ Object
readonly
Returns the value of attribute accounts.
-
#sessions ⇒ Object
readonly
Returns the value of attribute sessions.
Instance Method Summary collapse
-
#initialize ⇒ Registry
constructor
A new instance of Registry.
Constructor Details
#initialize ⇒ Registry
Returns a new instance of Registry.
9 10 11 12 |
# File 'lib/core/services/registry.rb', line 9 def initialize @accounts = Core::Services::Accounts.new(self) @sessions = Core::Services::Sessions.new(self) end |
Instance Attribute Details
#accounts ⇒ Object (readonly)
Returns the value of attribute accounts.
7 8 9 |
# File 'lib/core/services/registry.rb', line 7 def accounts @accounts end |
#sessions ⇒ Object (readonly)
Returns the value of attribute sessions.
7 8 9 |
# File 'lib/core/services/registry.rb', line 7 def sessions @sessions end |