class Fog::Compute::Packet::User

User

Attributes

options[RW]

Public Class Methods

new(attributes = {}) click to toggle source
Calls superclass method
# File lib/fog/compute/packet/models/user.rb, line 34
def initialize(attributes = {})
  super
end

Public Instance Methods

update() click to toggle source
# File lib/fog/compute/packet/models/user.rb, line 38
def update
  requires :id

  options = {}
  options[:first_name] = first_name if first_name
  options[:last_name] = last_name if last_name
  options[:phone_number] = phone_number if phone_number
  options[:timezone] = timezone if timezone
  options[:password] = password if password
  options[:avatar] = avatar if avatar

  response = service.update_user(id, options)

  merge_attributes(response.body)
end