Method: Travis::Client::EnvVar#update

Defined in:
lib/travis/client/env_var.rb

#update(options) ⇒ Object



89
90
91
92
93
94
# File 'lib/travis/client/env_var.rb', line 89

def update(options)
  options = { value: options } unless options.is_a? Hash
  result  = session.patch(EnvVar.path(self), JSON.dump(env_var: options))
  attributes.replace(result['env_var'].attributes)
  self
end