class RTsung::Server

Constants

PORT
TYPE

Public Class Methods

new(host, options = {}) click to toggle source
# File lib/rtsung/server.rb, line 6
def initialize(host, options = {})
  @attrs = {
    :host => host,
    :port => options[:port] || PORT,
    :type => options[:type] || TYPE
  }
end

Public Instance Methods

to_xml(xml) click to toggle source
# File lib/rtsung/server.rb, line 14
def to_xml(xml)
  xml.server @attrs
end