Class: Uberssh::Account

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

Constant Summary collapse

VALID_OPTIONS =
%w( project hostname ssh_key )

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options = {})
  @name = name

  filtered_options(options).each do |k, v|
    send("#{k}=", v)
  end
end

Instance Attribute Details

#hostnameObject

Returns the value of attribute hostname.



7
8
9
# File 'lib/uberssh/account.rb', line 7

def hostname
  @hostname
end

#nameObject

Returns the value of attribute name.



7
8
9
# File 'lib/uberssh/account.rb', line 7

def name
  @name
end

#projectObject

Returns the value of attribute project.



7
8
9
# File 'lib/uberssh/account.rb', line 7

def project
  @project
end

#ssh_keyObject

Returns the value of attribute ssh_key.



7
8
9
# File 'lib/uberssh/account.rb', line 7

def ssh_key
  @ssh_key
end