Class: TheCity::Role

Inherits:
ApiObject show all
Defined in:
lib/api/role.rb

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

Methods inherited from ApiObject

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

Constructor Details

#initialize(json_data) ⇒ Role

Constructor.

Parameters:

  • json_data

    JSON data of the group tag.



28
29
30
31
# File 'lib/api/role.rb', line 28

def initialize(json_data)
  @writer_object = TagWriter
  initialize_from_json_object(json_data)
end

Instance Method Details

#deleteObject



37
38
39
# File 'lib/api/role.rb', line 37

def delete
  raise 'Role does not have a delete method'
end

#saveObject



33
34
35
# File 'lib/api/role.rb', line 33

def save
  raise 'Role does not have a save method'
end