Class: Fog::Compute::Packet::User
- Inherits:
-
Model
- Object
- Model
- Fog::Compute::Packet::User
- Defined in:
- lib/fog/compute/packet/models/user.rb
Overview
User
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ User
constructor
A new instance of User.
- #update ⇒ Object
Constructor Details
#initialize(attributes = {}) ⇒ User
Returns a new instance of User.
34 35 36 |
# File 'lib/fog/compute/packet/models/user.rb', line 34 def initialize(attributes = {}) super end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
32 33 34 |
# File 'lib/fog/compute/packet/models/user.rb', line 32 def @options end |
Instance Method Details
#update ⇒ Object
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/fog/compute/packet/models/user.rb', line 38 def update requires :id = {} [:first_name] = first_name if first_name [:last_name] = last_name if last_name [:phone_number] = phone_number if phone_number [:timezone] = timezone if timezone [:password] = password if password [:avatar] = avatar if avatar response = service.update_user(id, ) merge_attributes(response.body) end |