Class: RubyPins::Host

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#addressObject

Returns the value of attribute address.



4
5
6
# File 'lib/ruby_pins/host.rb', line 4

def address
  @address
end

#passwordObject

Returns the value of attribute password.



4
5
6
# File 'lib/ruby_pins/host.rb', line 4

def password
  @password
end

#userObject

Returns the value of attribute user.



4
5
6
# File 'lib/ruby_pins/host.rb', line 4

def user
  @user
end