class Maxwell::Agent::Host

Attributes

attributes[R]

Public Class Methods

new(attrs={}) click to toggle source
# File lib/maxwell/agent/host.rb, line 26
def initialize(attrs={})
  @attributes = Attributes.new(attrs)
  @attributes.services ||= []
end

Public Instance Methods

add_service(service) click to toggle source
# File lib/maxwell/agent/host.rb, line 36
def add_service(service)
  @attributes[:services] << service
end
serialize() click to toggle source
# File lib/maxwell/agent/host.rb, line 31
def serialize
  Serializer.serialize(attributes.dup)
end
services() click to toggle source
# File lib/maxwell/agent/host.rb, line 40
def services
  @attributes[:services]
end