Class: Dendrite::ServiceNode::Dependency
- Inherits:
-
Struct
- Object
- Struct
- Dendrite::ServiceNode::Dependency
- Includes:
- ActiveModel::Validations
- Defined in:
- lib/dendrite/service_node.rb
Instance Attribute Summary collapse
-
#identifier ⇒ Object
Returns the value of attribute identifier.
-
#latency ⇒ Object
Returns the value of attribute latency.
-
#read_only ⇒ Object
Returns the value of attribute read_only.
-
#service ⇒ Object
Returns the value of attribute service.
Instance Method Summary collapse
Instance Attribute Details
#identifier ⇒ Object
Returns the value of attribute identifier
98 99 100 |
# File 'lib/dendrite/service_node.rb', line 98 def identifier @identifier end |
#latency ⇒ Object
Returns the value of attribute latency
98 99 100 |
# File 'lib/dendrite/service_node.rb', line 98 def latency @latency end |
#read_only ⇒ Object
Returns the value of attribute read_only
98 99 100 |
# File 'lib/dendrite/service_node.rb', line 98 def read_only @read_only end |
#service ⇒ Object
Returns the value of attribute service
98 99 100 |
# File 'lib/dendrite/service_node.rb', line 98 def service @service end |
Instance Method Details
#service_type ⇒ Object
104 105 106 107 108 |
# File 'lib/dendrite/service_node.rb', line 104 def service_type unless service.is_a?(ServiceNode) errors.add(:service, "service has to be a Service Node") end end |