Class: Ikbis::Simple::Photo
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
11 12 13 |
# File 'lib/ikbis/simple/photo.rb', line 11 def self.comments(id, response='xml') get("/#{id}/comments.#{response}") end |
.has_tag(tag, response = 'xml', page = 1) ⇒ Object
19 20 21 |
# File 'lib/ikbis/simple/photo.rb', line 19 def self.has_tag(tag, response='xml', page=1) get("#{Base.base_uri}/search/#{tag}/tags.#{response}?page=#{page}&type=Photo") end |
.in_category(id, response = 'xml', page = 1) ⇒ Object
15 16 17 |
# File 'lib/ikbis/simple/photo.rb', line 15 def self.in_category(id, response='xml', page=1) get("/#{id}/category_medias.#{response}?page=#{page}&type=Photo") end |
.info(id, response = 'xml') ⇒ Object
7 8 9 |
# File 'lib/ikbis/simple/photo.rb', line 7 def self.info(id, response='xml') get("/#{id}/#{response}") end |