Class: RadioDNS::Application

Inherits:
Object
  • Object
show all
Defined in:
lib/radiodns.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ Application

Returns a new instance of Application.



43
44
45
46
47
# File 'lib/radiodns.rb', line 43

def initialize(params)
  @host = params[:host]
  @port = params[:port]
  @type = params[:type]
end

Instance Attribute Details

#hostObject

Returns the value of attribute host.



42
43
44
# File 'lib/radiodns.rb', line 42

def host
  @host
end

#portObject

Returns the value of attribute port.



42
43
44
# File 'lib/radiodns.rb', line 42

def port
  @port
end

#typeObject

Returns the value of attribute type.



42
43
44
# File 'lib/radiodns.rb', line 42

def type
  @type
end