Class: GithubSshKeysFor::GetKeys

Inherits:
Object
  • Object
show all
Defined in:
lib/github_ssh_keys_for/get_keys.rb

Instance Method Summary collapse

Constructor Details

#initialize(username) ⇒ GetKeys

Returns a new instance of GetKeys.



6
7
8
# File 'lib/github_ssh_keys_for/get_keys.rb', line 6

def initialize(username)
  @username = username
end

Instance Method Details

#executeObject



10
11
12
13
14
15
# File 'lib/github_ssh_keys_for/get_keys.rb', line 10

def execute
  response = open_json_uri(uri)
  response.map do |item|
    item["key"]
  end
end