Class: Fog::Scaleway::Account::User
- Inherits:
-
Model
- Object
- Model
- Fog::Scaleway::Account::User
- Defined in:
- lib/fog/scaleway/models/account/user.rb
Instance Method Summary collapse
Instance Method Details
#organizations=(value) ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/fog/scaleway/models/account/user.rb', line 19 def organizations=(value) attributes[:organizations] = value.map do |v| case v when Hash service.organizations.new(v) when String service.organizations.new(identity: v) else v end end end |
#save ⇒ Object
32 33 34 35 36 37 38 |
# File 'lib/fog/scaleway/models/account/user.rb', line 32 def save if persisted? update else create end end |