Class: Ikbis::Simple::Video
Class Method Summary collapse
- .comments(id, response = 'xml') ⇒ Object
- .has_tag(tag, response = 'xml', page = 1) ⇒ Object
- .in_category(id, response = 'xml', page = 1) ⇒ Object
- .info(id, response = 'xml') ⇒ Object
Class Method Details
.comments(id, response = 'xml') ⇒ Object
12 13 14 |
# File 'lib/ikbis/simple/video.rb', line 12 def self.comments(id, response='xml') get("/#{id}/comments.#{response}") end |
.has_tag(tag, response = 'xml', page = 1) ⇒ Object
20 21 22 |
# File 'lib/ikbis/simple/video.rb', line 20 def self.has_tag(tag, response='xml', page=1) get("#{Base.base_uri}/search/#{tag}/tags.#{response}?page=#{page}&type=Video") end |
.in_category(id, response = 'xml', page = 1) ⇒ Object
16 17 18 |
# File 'lib/ikbis/simple/video.rb', line 16 def self.in_category(id, response='xml', page=1) get("/#{id}/category_medias.#{response}?page=#{page}&type=Video") end |
.info(id, response = 'xml') ⇒ Object
8 9 10 |
# File 'lib/ikbis/simple/video.rb', line 8 def self.info(id, response='xml') get("/#{id}.#{response}") end |