Class: RadioDNS::Application
- Inherits:
-
Object
- Object
- RadioDNS::Application
- Defined in:
- lib/radiodns.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#port ⇒ Object
Returns the value of attribute port.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(params) ⇒ Application
constructor
A new instance of Application.
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
#host ⇒ Object
Returns the value of attribute host.
42 43 44 |
# File 'lib/radiodns.rb', line 42 def host @host end |
#port ⇒ Object
Returns the value of attribute port.
42 43 44 |
# File 'lib/radiodns.rb', line 42 def port @port end |
#type ⇒ Object
Returns the value of attribute type.
42 43 44 |
# File 'lib/radiodns.rb', line 42 def type @type end |