Class: Rafflesia::RegistryScope
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::RegistryScope
- Defined in:
- lib/rafflesia/foundry/registry_scope.rb
Constant Summary collapse
- HASH_ATTRS =
{ access_policy_id: :access_policy_id, classification: :classification, organization_id: :organization_id, resource_group_id: :resource_group_id, 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.
-
#organization_id ⇒ Object
Returns the value of attribute organization_id.
-
#resource_group_id ⇒ Object
Returns the value of attribute resource_group_id.
-
#storage_scope_id ⇒ Object
Returns the value of attribute storage_scope_id.
Instance Method Summary collapse
-
#initialize(json) ⇒ RegistryScope
constructor
A new instance of RegistryScope.
Constructor Details
#initialize(json) ⇒ RegistryScope
Returns a new instance of RegistryScope.
23 24 25 26 27 28 29 30 31 |
# File 'lib/rafflesia/foundry/registry_scope.rb', line 23 def initialize(json) super() hash = self.class.normalize(json) @access_policy_id = hash[:access_policy_id] @classification = hash[:classification] @organization_id = hash[:organization_id] @resource_group_id = hash[:resource_group_id] @storage_scope_id = hash[:storage_scope_id] end |
Instance Attribute Details
#access_policy_id ⇒ Object
Returns the value of attribute access_policy_id.
16 17 18 |
# File 'lib/rafflesia/foundry/registry_scope.rb', line 16 def access_policy_id @access_policy_id end |
#classification ⇒ Object
Returns the value of attribute classification.
16 17 18 |
# File 'lib/rafflesia/foundry/registry_scope.rb', line 16 def classification @classification end |
#organization_id ⇒ Object
Returns the value of attribute organization_id.
16 17 18 |
# File 'lib/rafflesia/foundry/registry_scope.rb', line 16 def organization_id @organization_id end |
#resource_group_id ⇒ Object
Returns the value of attribute resource_group_id.
16 17 18 |
# File 'lib/rafflesia/foundry/registry_scope.rb', line 16 def resource_group_id @resource_group_id end |
#storage_scope_id ⇒ Object
Returns the value of attribute storage_scope_id.
16 17 18 |
# File 'lib/rafflesia/foundry/registry_scope.rb', line 16 def storage_scope_id @storage_scope_id end |