Class: Littlstar::Photos
- Inherits:
-
Object
- Object
- Littlstar::Photos
- Defined in:
- lib/littlstar/photos.rb
Instance Method Summary collapse
- #all(query = {}) ⇒ Object
- #comments_for(id, query = {}) ⇒ Object
- #featured(query = {}) ⇒ Object
- #get(id) ⇒ Object
- #latest(query = {}) ⇒ Object
- #vr(query = {}) ⇒ Object
Instance Method Details
#all(query = {}) ⇒ Object
8 9 10 |
# File 'lib/littlstar/photos.rb', line 8 def all(query={}) Littlstar.request(:get, '/photos', query) end |
#comments_for(id, query = {}) ⇒ Object
24 25 26 |
# File 'lib/littlstar/photos.rb', line 24 def comments_for(id, query={}) Littlstar.request(:get, "/photos/#{id}/comments", query) end |
#featured(query = {}) ⇒ Object
12 13 14 |
# File 'lib/littlstar/photos.rb', line 12 def featured(query={}) Littlstar.request(:get, '/photos/featured', query) end |
#get(id) ⇒ Object
4 5 6 |
# File 'lib/littlstar/photos.rb', line 4 def get(id) Littlstar.request(:get, "/photos/#{id}") end |
#latest(query = {}) ⇒ Object
16 17 18 |
# File 'lib/littlstar/photos.rb', line 16 def latest(query={}) Littlstar.request(:get, '/photos/latest', query) end |
#vr(query = {}) ⇒ Object
20 21 22 |
# File 'lib/littlstar/photos.rb', line 20 def vr(query={}) Littlstar.request(:get, '/photos/vr', query) end |