Class: Dendrite::ServiceNode::Dependency

Inherits:
Struct
  • Object
show all
Includes:
ActiveModel::Validations
Defined in:
lib/dendrite/service_node.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#identifierObject

Returns the value of attribute identifier

Returns:

  • (Object)

    the current value of identifier



98
99
100
# File 'lib/dendrite/service_node.rb', line 98

def identifier
  @identifier
end

#latencyObject

Returns the value of attribute latency

Returns:

  • (Object)

    the current value of latency



98
99
100
# File 'lib/dendrite/service_node.rb', line 98

def latency
  @latency
end

#read_onlyObject

Returns the value of attribute read_only

Returns:

  • (Object)

    the current value of read_only



98
99
100
# File 'lib/dendrite/service_node.rb', line 98

def read_only
  @read_only
end

#serviceObject

Returns the value of attribute service

Returns:

  • (Object)

    the current value of service



98
99
100
# File 'lib/dendrite/service_node.rb', line 98

def service
  @service
end

Instance Method Details

#service_typeObject



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