Class: GithubSshKeysFor::GetKeys
- Inherits:
-
Object
- Object
- GithubSshKeysFor::GetKeys
- Defined in:
- lib/github_ssh_keys_for/get_keys.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(username) ⇒ GetKeys
constructor
A new instance of GetKeys.
Constructor Details
#initialize(username) ⇒ GetKeys
6 7 8 |
# File 'lib/github_ssh_keys_for/get_keys.rb', line 6 def initialize(username) @username = username end |
Instance Method Details
#execute ⇒ Object
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 |