Class: Rafflesia::AccessGrant
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::AccessGrant
- Defined in:
- lib/rafflesia/registry/access_grant.rb
Constant Summary collapse
- HASH_ATTRS =
{ actions: :actions, principal_id: :principal_id, principal_type: :principal_type }.freeze
Instance Attribute Summary collapse
-
#actions ⇒ Object
Returns the value of attribute actions.
-
#principal_id ⇒ Object
Returns the value of attribute principal_id.
-
#principal_type ⇒ Object
Returns the value of attribute principal_type.
Instance Method Summary collapse
-
#initialize(json) ⇒ AccessGrant
constructor
A new instance of AccessGrant.
Constructor Details
#initialize(json) ⇒ AccessGrant
Returns a new instance of AccessGrant.
19 20 21 22 23 24 25 |
# File 'lib/rafflesia/registry/access_grant.rb', line 19 def initialize(json) super() hash = self.class.normalize(json) @actions = (hash[:actions] || []) @principal_id = hash[:principal_id] @principal_type = hash[:principal_type] end |
Instance Attribute Details
#actions ⇒ Object
Returns the value of attribute actions.
14 15 16 |
# File 'lib/rafflesia/registry/access_grant.rb', line 14 def actions @actions end |
#principal_id ⇒ Object
Returns the value of attribute principal_id.
14 15 16 |
# File 'lib/rafflesia/registry/access_grant.rb', line 14 def principal_id @principal_id end |
#principal_type ⇒ Object
Returns the value of attribute principal_type.
14 15 16 |
# File 'lib/rafflesia/registry/access_grant.rb', line 14 def principal_type @principal_type end |