Class: CloudFoundry::Perm::V1::Models::Permission
- Defined in:
- lib/perm/v1/models/permission.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#resource_pattern ⇒ Object
readonly
Returns the value of attribute resource_pattern.
Instance Method Summary collapse
-
#initialize(action:, resource_pattern:) ⇒ Permission
constructor
A new instance of Permission.
Methods inherited from BaseModel
Constructor Details
#initialize(action:, resource_pattern:) ⇒ Permission
Returns a new instance of Permission.
10 11 12 13 |
# File 'lib/perm/v1/models/permission.rb', line 10 def initialize(action:, resource_pattern:) @action = action @resource_pattern = resource_pattern end |
Instance Attribute Details
#action ⇒ Object (readonly)
Returns the value of attribute action.
8 9 10 |
# File 'lib/perm/v1/models/permission.rb', line 8 def action @action end |
#resource_pattern ⇒ Object (readonly)
Returns the value of attribute resource_pattern.
8 9 10 |
# File 'lib/perm/v1/models/permission.rb', line 8 def resource_pattern @resource_pattern end |