class Scalingo::Endpoint::AccountKeys
Public Class Methods
new(api, _, opts = {})
click to toggle source
Calls superclass method
Scalingo::Endpoint::Base::new
# File lib/scalingo/endpoint/account_keys.rb, line 4 def initialize(api, _, opts = {}) super(api, 'keys', opts) end
Public Instance Methods
collection_name()
click to toggle source
# File lib/scalingo/endpoint/account_keys.rb, line 8 def collection_name 'keys' end
create(name, content)
click to toggle source
# File lib/scalingo/endpoint/account_keys.rb, line 12 def create(name, content) post(nil, key: { name: name, content: content }) end