Class: Rafflesia::ResourceGroup
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::ResourceGroup
- Defined in:
- lib/rafflesia/registry/resource_group.rb
Constant Summary collapse
- HASH_ATTRS =
{ access_policy_id: :access_policy_id, classification: :classification, description: :description, display_name: :display_name, id: :id, organization_id: :organization_id, slug: :slug, storage_scope_id: :storage_scope_id }.freeze
Instance Attribute Summary collapse
-
#access_policy_id ⇒ Object
Returns the value of attribute access_policy_id.
-
#classification ⇒ Object
Returns the value of attribute classification.
-
#description ⇒ Object
Returns the value of attribute description.
-
#display_name ⇒ Object
Returns the value of attribute display_name.
-
#id ⇒ Object
Returns the value of attribute id.
-
#organization_id ⇒ Object
Returns the value of attribute organization_id.
-
#slug ⇒ Object
Returns the value of attribute slug.
-
#storage_scope_id ⇒ Object
Returns the value of attribute storage_scope_id.
Instance Method Summary collapse
-
#initialize(json) ⇒ ResourceGroup
constructor
A new instance of ResourceGroup.
Constructor Details
#initialize(json) ⇒ ResourceGroup
Returns a new instance of ResourceGroup.
29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/rafflesia/registry/resource_group.rb', line 29 def initialize(json) super() hash = self.class.normalize(json) @access_policy_id = hash[:access_policy_id] @classification = hash[:classification] @description = hash[:description] @display_name = hash[:display_name] @id = hash[:id] @organization_id = hash[:organization_id] @slug = hash[:slug] @storage_scope_id = hash[:storage_scope_id] end |
Instance Attribute Details
#access_policy_id ⇒ Object
Returns the value of attribute access_policy_id.
19 20 21 |
# File 'lib/rafflesia/registry/resource_group.rb', line 19 def access_policy_id @access_policy_id end |
#classification ⇒ Object
Returns the value of attribute classification.
19 20 21 |
# File 'lib/rafflesia/registry/resource_group.rb', line 19 def classification @classification end |
#description ⇒ Object
Returns the value of attribute description.
19 20 21 |
# File 'lib/rafflesia/registry/resource_group.rb', line 19 def description @description end |
#display_name ⇒ Object
Returns the value of attribute display_name.
19 20 21 |
# File 'lib/rafflesia/registry/resource_group.rb', line 19 def display_name @display_name end |
#id ⇒ Object
Returns the value of attribute id.
19 20 21 |
# File 'lib/rafflesia/registry/resource_group.rb', line 19 def id @id end |
#organization_id ⇒ Object
Returns the value of attribute organization_id.
19 20 21 |
# File 'lib/rafflesia/registry/resource_group.rb', line 19 def organization_id @organization_id end |
#slug ⇒ Object
Returns the value of attribute slug.
19 20 21 |
# File 'lib/rafflesia/registry/resource_group.rb', line 19 def slug @slug end |
#storage_scope_id ⇒ Object
Returns the value of attribute storage_scope_id.
19 20 21 |
# File 'lib/rafflesia/registry/resource_group.rb', line 19 def storage_scope_id @storage_scope_id end |