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

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

Instance Method Summary collapse

Methods included from Brightbox::ModelHelper

#collection_name, #resource_name

Instance Method Details

#saveObject



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

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