class KayakoClient::TicketNote
Constants
- COLOR_BLUE
- COLOR_GREEN
- COLOR_PURPLE
- COLOR_RED
- COLOR_YELLOW
- NOTE_TYPES
Public Instance Methods
created_by_user?()
click to toggle source
# File lib/kayako_client/ticket_note.rb, line 92 def created_by_user? !user_id.nil? && user_id > 0 end
Also aliased as: has_user?
has_creator_staff?()
click to toggle source
# File lib/kayako_client/ticket_note.rb, line 84 def has_creator_staff? !creator_staff_id.nil? && creator_staff_id > 0 end
has_for_staff?()
click to toggle source
# File lib/kayako_client/ticket_note.rb, line 88 def has_for_staff? !for_staff_id.nil? && for_staff_id > 0 end
has_user_organization?()
click to toggle source
# File lib/kayako_client/ticket_note.rb, line 98 def has_user_organization? !user_organization_id.nil? && user_organization_id > 0 end
has_worker_staff?()
click to toggle source
# File lib/kayako_client/ticket_note.rb, line 102 def has_worker_staff? !worker_staff_id.nil? && worker_staff_id > 0 end
is_ticket_note?()
click to toggle source
NOTE: :all returns only notes of :ticket type
# File lib/kayako_client/ticket_note.rb, line 68 def is_ticket_note? !type.nil? && type == :ticket end
is_time_track_note?()
click to toggle source
# File lib/kayako_client/ticket_note.rb, line 80 def is_time_track_note? !type.nil? && type == :timetrack end
is_user_note?()
click to toggle source
# File lib/kayako_client/ticket_note.rb, line 72 def is_user_note? !type.nil? && type == :user end
is_user_organization_note?()
click to toggle source
# File lib/kayako_client/ticket_note.rb, line 76 def is_user_organization_note? !type.nil? && type == :userorganization end
Private Instance Methods
validate(method, params)
click to toggle source
# File lib/kayako_client/ticket_note.rb, line 108 def validate(method, params) if method == :post unless params[:staff_id] || params[:full_name] raise ArgumentError, ":staff_id or :full_name is required" end end end