Class: Scalingo::Endpoint::AccountKeys
Instance Attribute Summary
Attributes included from Base
#api, #prefix
Instance Method Summary
collapse
Methods inherited from Collection
#all, #each, #find, #find_by, #resource_class
included
#resources
Constructor Details
4
5
6
|
# File 'lib/scalingo/endpoint/account_keys.rb', line 4
def initialize(api)
super(api, 'account/keys')
end
|
Instance Method Details
#collection_name ⇒ Object
8
9
10
|
# File 'lib/scalingo/endpoint/account_keys.rb', line 8
def collection_name
'keys'
end
|
#create(name, content) ⇒ Object
12
13
14
|
# File 'lib/scalingo/endpoint/account_keys.rb', line 12
def create(name, content)
post(nil, {key: {name: name, content: content}})
end
|