class Dryad::Core::Service
Constants
- DEFAULT_OPTIONS
- TYPE
Attributes
address[RW]
group[RW]
load_balancing[RW]
name[RW]
portals[RW]
priority[RW]
Public Class Methods
full_name(schema, name)
click to toggle source
# File lib/dryad/core/service.rb, line 28 def full_name(schema, name) case schema when Schema::HTTP name else "#{name}-#{schema}" end end
new(options = {})
click to toggle source
# File lib/dryad/core/service.rb, line 13 def initialize(options = {}) options = DEFAULT_OPTIONS.merge(options) @name = options[:name] @address = options[:address] @group = options[:group] @portals = options[:portals] @priority = options[:priority] @load_balancing = options[:load_balancing] end
Public Instance Methods
type_name()
click to toggle source
# File lib/dryad/core/service.rb, line 23 def type_name Dryad::Core::Service::TYPE end