Class: Cumulus::IAM::UserConfig

Inherits:
ResourceWithPolicy show all
Defined in:
lib/iam/models/UserConfig.rb

Overview

Public: Represents a config file for a user. Lazily loads its static and template policies as needed.

Instance Attribute Summary

Attributes inherited from ResourceWithPolicy

#attached_policies, #inlines, #name, #statics, #type

Instance Method Summary collapse

Methods inherited from ResourceWithPolicy

#diff, #generated_policy_name, #hash, #json, #policy

Constructor Details

#initialize(name = nil, json = nil) ⇒ UserConfig

Public: Constructor

name - the name of the user json - the Hash containing the JSON configuration for this UserConfig, if

nil, this will be an "empty UserConfig"


14
15
16
17
# File 'lib/iam/models/UserConfig.rb', line 14

def initialize(name = nil, json = nil)
  super(name, json)
  @type = "user"
end