Class: Clonk::Permission

Inherits:
Object
  • Object
show all
Defined in:
lib/clonk/permission.rb

Overview

Represents a permission in SSO. Methods on Clonk::Connection can be used to index its policies, resources and associated scopes

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(permission_response) ⇒ Permission

Returns a new instance of Permission.



10
11
12
13
# File 'lib/clonk/permission.rb', line 10

def initialize(permission_response)
  @id = permission_response['id']
  @name = permission_response['name']
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



7
8
9
# File 'lib/clonk/permission.rb', line 7

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



8
9
10
# File 'lib/clonk/permission.rb', line 8

def name
  @name
end