Class: Fog::Brightbox::Compute::User

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/brightbox/models/compute/user.rb

Instance Method Summary collapse

Methods included from ModelHelper

#collection_name, #resource_name

Instance Method Details

#saveObject



26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/fog/brightbox/models/compute/user.rb', line 26

def save
  requires :identity

  options = {
    email_address: email_address,
    ssh_key: ssh_key,
    name: name
  }

  data = service.update_user(identity, options)
  merge_attributes(data)
  true
end