class Datahen::Client::EnvVar

Public Instance Methods

all(opts={}) click to toggle source
# File lib/datahen/client/env_var.rb, line 9
def all(opts={})
  params = @options.merge opts
  self.class.get("/env_vars", params)
end
find(name) click to toggle source
# File lib/datahen/client/env_var.rb, line 5
def find(name)
  self.class.get("/env_vars/#{name}", @options)
end
set(name, value, opts={}) click to toggle source
# File lib/datahen/client/env_var.rb, line 14
def set(name, value, opts={})
  body = {}
  body[:value] = value
  body[:secret] = opts[:secret] if opts[:secret]
  params = @options.merge({body: body.to_json})
  self.class.put("/env_vars/#{name}", params)
end
unset(name, opts={}) click to toggle source
# File lib/datahen/client/env_var.rb, line 22
def unset(name, opts={})
  params = @options.merge(opts)
  self.class.delete("/env_vars/#{name}", params)
end