Class: TheCity::UserRole
Constant Summary collapse
- GroupTypes =
{:cg => 'CG', :service => 'Service', :campus => 'Campus'}
- Titles =
{:leader => 'Leader', :manager => 'Manager', :volunteer => 'Volunteer', :participant => 'Participant'}
Instance Attribute Summary
Attributes inherited from ApiObject
#error_messages, #marked_for_destruction
Instance Method Summary collapse
-
#initialize(json_data = nil) ⇒ UserRole
constructor
Constructor.
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) ⇒ UserRole
Constructor.
25 26 27 28 |
# File 'lib/api/user_role.rb', line 25 def initialize(json_data = nil) @writer_object = UserRoleWriter initialize_from_json_object(json_data) unless json_data.nil? end |