Class: Scalingo::Endpoint::Variable

Inherits:
Resource
  • Object
show all
Defined in:
lib/scalingo/endpoint/variables.rb

Instance Attribute Summary

Attributes included from Base

#api, #auth_api, #prefix

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Methods included from Scalingo::Endpoint

included

Methods included from ClassMethods

#resources

Methods included from Base

#initialize

Constructor Details

This class inherits a constructor from Scalingo::Endpoint::Resource

Instance Method Details

#destroyObject



17
18
19
# File 'lib/scalingo/endpoint/variables.rb', line 17

def destroy
  delete
end

#update(value) ⇒ Object



13
14
15
# File 'lib/scalingo/endpoint/variables.rb', line 13

def update(value)
  patch(nil, variable: { value: value })
end