Class: Miamtf::Model::Root
- Inherits:
-
Struct
- Object
- Struct
- Miamtf::Model::Root
- Defined in:
- lib/miamtf/model.rb
Instance Attribute Summary collapse
-
#instance_profiles ⇒ Object
Returns the value of attribute instance_profiles.
-
#managed_policies ⇒ Object
Returns the value of attribute managed_policies.
-
#roles ⇒ Object
Returns the value of attribute roles.
Instance Method Summary collapse
Instance Attribute Details
#instance_profiles ⇒ Object
Returns the value of attribute instance_profiles
2 3 4 |
# File 'lib/miamtf/model.rb', line 2 def instance_profiles @instance_profiles end |
#managed_policies ⇒ Object
Returns the value of attribute managed_policies
2 3 4 |
# File 'lib/miamtf/model.rb', line 2 def managed_policies @managed_policies end |
#roles ⇒ Object
Returns the value of attribute roles
2 3 4 |
# File 'lib/miamtf/model.rb', line 2 def roles @roles end |
Instance Method Details
#to_h ⇒ Object
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 |