Class: TheCity::UserNote

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

Constant Summary collapse

VisibleTo =
{: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) ⇒ UserNote

Constructor.

Parameters:

  • json_data (optional) (defaults to: nil)

    JSON data of the note.



22
23
24
25
# File 'lib/api/user_note.rb', line 22

def initialize(json_data = nil)
  @writer_object = UserNoteWriter
  initialize_from_json_object(json_data)
end