class NicoUtil::Channel
Public Class Methods
new(owner, channel_id)
click to toggle source
# File lib/nico_util/channel.rb, line 9 def initialize owner, channel_id @owner = owner @id = channel_id end
search(query, params={})
click to toggle source
# File lib/nico_util/channel.rb, line 18 def self.search query, params={} params[:_sort] = '-startTime' unless params.key? :_sort Service.search 'channel', query, params end
Public Instance Methods
url()
click to toggle source
# File lib/nico_util/channel.rb, line 14 def url "http://ch.nicovideo.jp/#{@id}" end