class KayakoClient::TicketPost

Constants

CREATOR_STAFF
CREATOR_USER

Public Instance Methods

created_by_staff?() click to toggle source
# File lib/kayako_client/ticket_post.rb, line 53
def created_by_staff?
    !creator.nil? && creator == CREATOR_STAFF
end
Also aliased as: has_staff?
created_by_user?() click to toggle source
# File lib/kayako_client/ticket_post.rb, line 59
def created_by_user?
    !creator.nil? && creator == CREATOR_USER
end
Also aliased as: has_user?
has_staff?()
Alias for: created_by_staff?
has_user?()
Alias for: created_by_user?

Private Instance Methods

validate(method, params) click to toggle source
# File lib/kayako_client/ticket_post.rb, line 67
def validate(method, params)
    if method == :post
        unless params[:user_id] || params[:staff_id]
            raise ArgumentError, ":user_id or :staff_id is required"
        end
    end
end