class Uberssh::Account
Constants
- VALID_OPTIONS
Attributes
hostname[RW]
name[RW]
project[RW]
ssh_key[RW]
Public Class Methods
new(name, options = {})
click to toggle source
# 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
Private Instance Methods
filtered_options(options)
click to toggle source
# File lib/uberssh/account.rb, line 19 def filtered_options(options) options.select { |k, _| VALID_OPTIONS.include?(k) } end