Class: RubyPins::Host
- Inherits:
-
Object
- Object
- RubyPins::Host
- Defined in:
- lib/ruby_pins/host.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#password ⇒ Object
Returns the value of attribute password.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(args) ⇒ Host
constructor
A new instance of Host.
Constructor Details
#initialize(args) ⇒ Host
Returns a new instance of Host.
6 7 8 |
# File 'lib/ruby_pins/host.rb', line 6 def initialize args args.each {|k, v| self.send "#{k}=", v} end |
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
4 5 6 |
# File 'lib/ruby_pins/host.rb', line 4 def address @address end |
#password ⇒ Object
Returns the value of attribute password.
4 5 6 |
# File 'lib/ruby_pins/host.rb', line 4 def password @password end |
#user ⇒ Object
Returns the value of attribute user.
4 5 6 |
# File 'lib/ruby_pins/host.rb', line 4 def user @user end |