class Blender::Discovery::Serf

Constants

Property

Attributes

attribute[R]

Public Class Methods

new(opts = {}) click to toggle source
# File lib/blender/discoveries/serf.rb, line 27
def initialize(opts = {})
  @config = {}
  @config[:host] = opts[:host] if opts.key?(:host)
  @config[:port] = opts[:port] if opts.key?(:port)
  @config[:authkey] = opts[:authkey] if opts.key?(:authkey)
  @attribute = opts[:attribute] || 'name'
end

Public Instance Methods