Class: ServiceObjects::Parsers::Dependency
- Inherits:
-
Object
- Object
- ServiceObjects::Parsers::Dependency
- Defined in:
- lib/service_objects/parsers/dependency.rb
Overview
Parses and decorates a string, describing a notification
Class Method Summary collapse
-
.initialize(source) ⇒ Hexx::Services::Parsers::Dependency
Constructs the object from source.
Instance Method Summary collapse
-
#listener ⇒ String
The listener name for the dependency.
-
#name ⇒ String
The name for the dependency default implementation.
-
#new(source) ⇒ Hexx::Services::Parsers::Dependency
Constructs the object from source.
-
#type ⇒ String
The type for the dependency default implementation.
Class Method Details
.initialize(source) ⇒ Hexx::Services::Parsers::Dependency
Constructs the object from source
24 25 26 |
# File 'lib/service_objects/parsers/dependency.rb', line 24 def initialize(source) @source = source.to_s end |
Instance Method Details
#listener ⇒ String
The listener name for the dependency
45 46 47 |
# File 'lib/service_objects/parsers/dependency.rb', line 45 def listener @listener ||= "#{ injector.const }Listener" end |
#name ⇒ String
The name for the dependency default implementation
31 32 33 |
# File 'lib/service_objects/parsers/dependency.rb', line 31 def name @name ||= injector.item end |
#new(source) ⇒ Hexx::Services::Parsers::Dependency
Constructs the object from source
24 25 26 |
# File 'lib/service_objects/parsers/dependency.rb', line 24 def initialize(source) @source = source.to_s end |
#type ⇒ String
The type for the dependency default implementation
38 39 40 |
# File 'lib/service_objects/parsers/dependency.rb', line 38 def type @type ||= injection.type end |