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



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

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