Class: Core::Services::Registry

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeRegistry

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

#accountsObject (readonly)

Returns the value of attribute accounts.



7
8
9
# File 'lib/core/services/registry.rb', line 7

def accounts
  @accounts
end

#sessionsObject (readonly)

Returns the value of attribute sessions.



7
8
9
# File 'lib/core/services/registry.rb', line 7

def sessions
  @sessions
end