Module: KayakoClient::CommentObject::ClassMethods

Defined in:
lib/kayako_client/mixins/comment_object.rb

Instance Method Summary collapse

Instance Method Details

#all(object, options = {}) ⇒ Object



79
80
81
82
83
84
85
# File 'lib/kayako_client/mixins/comment_object.rb', line 79

def all(object, options = {})
    unless object.to_i > 0
        logger.error "invalid commented object :id - #{object}" if logger
        raise ArgumentError, "invalid commented object ID"
    end
    super(options.merge(:e => "#{path}/ListAll/#{object.to_i}"))
end