Class: Core::Services::Registry
- Inherits:
-
Object
- Object
- Core::Services::Registry
- Includes:
- Singleton
- 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.
-
#applications ⇒ Object
readonly
Returns the value of attribute applications.
-
#authorizations ⇒ Object
readonly
Returns the value of attribute authorizations.
-
#campaigns ⇒ Object
readonly
Returns the value of attribute campaigns.
-
#sessions ⇒ Object
readonly
Returns the value of attribute sessions.
-
#tokens ⇒ Object
readonly
Returns the value of attribute tokens.
Instance Method Summary collapse
-
#initialize ⇒ Registry
constructor
A new instance of Registry.
Constructor Details
#initialize ⇒ Registry
Returns a new instance of Registry.
29 30 31 32 33 34 35 36 |
# File 'lib/core/services/registry.rb', line 29 def initialize @accounts = Core::Services::Accounts.instance @sessions = Core::Services::Sessions.instance @campaigns = Core::Services::Campaigns.instance @applications = Core::Services::Applications.instance @authorizations = Core::Services::Authorizations.instance @tokens = Core::Services::Tokens.instance end |
Instance Attribute Details
#accounts ⇒ Object (readonly)
Returns the value of attribute accounts.
12 13 14 |
# File 'lib/core/services/registry.rb', line 12 def accounts @accounts end |
#applications ⇒ Object (readonly)
Returns the value of attribute applications.
21 22 23 |
# File 'lib/core/services/registry.rb', line 21 def applications @applications end |
#authorizations ⇒ Object (readonly)
Returns the value of attribute authorizations.
24 25 26 |
# File 'lib/core/services/registry.rb', line 24 def @authorizations end |
#campaigns ⇒ Object (readonly)
Returns the value of attribute campaigns.
18 19 20 |
# File 'lib/core/services/registry.rb', line 18 def campaigns @campaigns end |
#sessions ⇒ Object (readonly)
Returns the value of attribute sessions.
15 16 17 |
# File 'lib/core/services/registry.rb', line 15 def sessions @sessions end |
#tokens ⇒ Object (readonly)
Returns the value of attribute tokens.
27 28 29 |
# File 'lib/core/services/registry.rb', line 27 def tokens @tokens end |