Class: Ikbis::Simple::Channel

Inherits:
Base
  • Object
show all
Defined in:
lib/ikbis/simple/channel.rb

Class Method Summary collapse

Class Method Details

.info(id, response = 'xml') ⇒ Object



8
9
10
# File 'lib/ikbis/simple/channel.rb', line 8

def self.info(id, response='xml')
  get("/#{id}.#{response}")
end

.subscribers(id, response = 'xml') ⇒ Object



16
17
18
# File 'lib/ikbis/simple/channel.rb', line 16

def self.subscribers(id, response='xml')
  get("/#{id}/subscribers.#{response}")
end

.videos(id, response = 'xml', page = 1) ⇒ Object



12
13
14
# File 'lib/ikbis/simple/channel.rb', line 12

def self.videos(id, response='xml', page=1)
  get("/#{id}/videos.#{response}?page=#{page}")
end