Class: Miamtf::Model::Root

Inherits:
Struct
  • Object
show all
Defined in:
lib/miamtf/model.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#instance_profilesObject

Returns the value of attribute instance_profiles

Returns:

  • (Object)

    the current value of instance_profiles



2
3
4
# File 'lib/miamtf/model.rb', line 2

def instance_profiles
  @instance_profiles
end

#managed_policiesObject

Returns the value of attribute managed_policies

Returns:

  • (Object)

    the current value of managed_policies



2
3
4
# File 'lib/miamtf/model.rb', line 2

def managed_policies
  @managed_policies
end

#rolesObject

Returns the value of attribute roles

Returns:

  • (Object)

    the current value of roles



2
3
4
# File 'lib/miamtf/model.rb', line 2

def roles
  @roles
end

Instance Method Details

#to_hObject



9
10
11
12
13
14
15
# File 'lib/miamtf/model.rb', line 9

def to_h
  {
    roles: roles.transform_values(&:to_h),
    managed_policies: managed_policies.transform_values(&:to_h),
    instance_profiles: instance_profiles.transform_values(&:to_h),
  }
end