Class: Dryad::Core::Service
- Inherits:
-
Object
- Object
- Dryad::Core::Service
- Defined in:
- lib/dryad/core/service.rb
Constant Summary collapse
- TYPE =
"microservice"
- DEFAULT_OPTIONS =
{ :portals => [], :load_balancing => [] }
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#group ⇒ Object
Returns the value of attribute group.
-
#load_balancing ⇒ Object
Returns the value of attribute load_balancing.
-
#name ⇒ Object
Returns the value of attribute name.
-
#portals ⇒ Object
Returns the value of attribute portals.
-
#priority ⇒ Object
Returns the value of attribute priority.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Service
constructor
A new instance of Service.
- #type_name ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Service
Returns a new instance of Service.
13 14 15 16 17 18 19 20 21 |
# File 'lib/dryad/core/service.rb', line 13 def initialize( = {}) = DEFAULT_OPTIONS.merge() @name = [:name] @address = [:address] @group = [:group] @portals = [:portals] @priority = [:priority] @load_balancing = [:load_balancing] end |
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
4 5 6 |
# File 'lib/dryad/core/service.rb', line 4 def address @address end |
#group ⇒ Object
Returns the value of attribute group.
4 5 6 |
# File 'lib/dryad/core/service.rb', line 4 def group @group end |
#load_balancing ⇒ Object
Returns the value of attribute load_balancing.
4 5 6 |
# File 'lib/dryad/core/service.rb', line 4 def load_balancing @load_balancing end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/dryad/core/service.rb', line 4 def name @name end |
#portals ⇒ Object
Returns the value of attribute portals.
4 5 6 |
# File 'lib/dryad/core/service.rb', line 4 def portals @portals end |
#priority ⇒ Object
Returns the value of attribute priority.
4 5 6 |
# File 'lib/dryad/core/service.rb', line 4 def priority @priority end |