class KayakoClient::NewsItem
Constants
- STATUS_DRAFT
- STATUS_PUBLISHED
- TYPE_GLOBAL
- TYPE_PRIVATE
- TYPE_PUBLIC
Public Class Methods
all(*args)
click to toggle source
Calls superclass method
# File lib/kayako_client/news_item.rb, line 68 def self.all(*args) options = args.last.is_a?(Hash) ? args.pop : {} if args.size > 0 if args.size == 1 options.merge!(:e => "#{path}/ListAll/#{args.first.to_i}") else raise ArgumentError, "too many arguments" end end super(options) end
Public Instance Methods
in_category?(category)
click to toggle source
# File lib/kayako_client/news_item.rb, line 64 def in_category?(category) category.respond_to?(:to_i) && !category_ids.nil? && category_ids.include?(category.to_i) end