Class: Uberssh::Account
- Inherits:
-
Object
- Object
- Uberssh::Account
- Defined in:
- lib/uberssh/account.rb
Constant Summary collapse
- VALID_OPTIONS =
%w( project hostname ssh_key )
Instance Attribute Summary collapse
-
#hostname ⇒ Object
Returns the value of attribute hostname.
-
#name ⇒ Object
Returns the value of attribute name.
-
#project ⇒ Object
Returns the value of attribute project.
-
#ssh_key ⇒ Object
Returns the value of attribute ssh_key.
Instance Method Summary collapse
-
#initialize(name, options = {}) ⇒ Account
constructor
A new instance of Account.
Constructor Details
#initialize(name, options = {}) ⇒ Account
Returns a new instance of Account.
9 10 11 12 13 14 15 |
# File 'lib/uberssh/account.rb', line 9 def initialize(name, = {}) @name = name ().each do |k, v| send("#{k}=", v) end end |
Instance Attribute Details
#hostname ⇒ Object
Returns the value of attribute hostname.
7 8 9 |
# File 'lib/uberssh/account.rb', line 7 def hostname @hostname end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/uberssh/account.rb', line 7 def name @name end |
#project ⇒ Object
Returns the value of attribute project.
7 8 9 |
# File 'lib/uberssh/account.rb', line 7 def project @project end |
#ssh_key ⇒ Object
Returns the value of attribute ssh_key.
7 8 9 |
# File 'lib/uberssh/account.rb', line 7 def ssh_key @ssh_key end |