Class: Code42::Role
Instance Attribute Summary collapse
-
#created_at ⇒ DateTime
The timestamp for the time the role was assigned.
-
#id ⇒ Fixnum
The id of the role.
-
#name ⇒ String
The name of the role.
-
#permissions ⇒ Array
A list of permissions for this role.
-
#updated_at ⇒ DateTime
The timestamp for the time the role was updated.
Attributes inherited from Resource
Instance Method Summary collapse
Methods inherited from Resource
attribute, collection_from_response, deserialize, deserialize_and_initialize, from_response, #initialize, serialize, #serialize, serializer
Constructor Details
This class inherits a constructor from Code42::Resource
Instance Attribute Details
#created_at ⇒ DateTime
Returns The timestamp for the time the role was assigned.
15 |
# File 'lib/code42/role.rb', line 15 attribute :id, :from => :roleId |
#id ⇒ Fixnum
Returns The id of the role.
15 |
# File 'lib/code42/role.rb', line 15 attribute :id, :from => :roleId |
#name ⇒ String
Returns The name of the role.
15 |
# File 'lib/code42/role.rb', line 15 attribute :id, :from => :roleId |
#permissions ⇒ Array
Returns A list of permissions for this role.
15 |
# File 'lib/code42/role.rb', line 15 attribute :id, :from => :roleId |
#updated_at ⇒ DateTime
Returns The timestamp for the time the role was updated.
15 |
# File 'lib/code42/role.rb', line 15 attribute :id, :from => :roleId |
Instance Method Details
#delete ⇒ Object
29 30 31 |
# File 'lib/code42/role.rb', line 29 def delete client.delete_role(id) end |
#update(attrs = {}) ⇒ Object
25 26 27 |
# File 'lib/code42/role.rb', line 25 def update(attrs = {}) client.update_role(id, attrs) end |