Class: TheCity::UserAdminPrivilege

Inherits:
ApiObject
  • Object
show all
Defined in:
lib/api/user_admin_privilege.rb

Constant Summary collapse

Permissions =
{:api_admin => 'API Admin', :account_admin => 'Account Admin', 
:designer => 'Designer', :financial_user => 'Financial User',
:group_admin => 'Group Admin', :process_user => 'Process User',
:reporting_user => 'Reporting User', :resource_admin => 'Resource Admin',
:support_admin => 'Support Admin', :user_admin => 'User Admin'}

Instance Attribute Summary

Attributes inherited from ApiObject

#error_messages, #marked_for_destruction

Instance Method Summary collapse

Methods inherited from ApiObject

__tc_attributes, #delete, #initialize_from_json_object, #is_deleted?, #save, #set_attributes, tc_attr_accessor, #to_attributes

Constructor Details

#initialize(json_data = nil) ⇒ UserAdminPrivilege

Constructor.

Parameters:

  • json_data (optional) (defaults to: nil)

    JSON data of the note.



19
20
21
22
# File 'lib/api/user_admin_privilege.rb', line 19

def initialize(json_data = nil)
  @writer_object = UserAdminPrivilegeWriter
  initialize_from_json_object(json_data) unless json_data.nil?
end