Class: CloudFoundry::Perm::V1::Models::Permission

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/perm/v1/models/permission.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#actionObject (readonly)

Returns the value of attribute action.



8
9
10
# File 'lib/perm/v1/models/permission.rb', line 8

def action
  @action
end

#resource_patternObject (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