Sha256: 23f29ab03f684e152bd5b91ea7de297384f5ae1d521d82257966ba876f455a3c
Contents?: true
Size: 1.91 KB
Versions: 3
Compression:
Stored size: 1.91 KB
Contents
module Tamber class Discover < APIResource def self.next(params={}) response = request(:get, self.next_url, params) Util.convert_to_tamber_object(response) end def self.recommended(params={}) response = request(:get, self.recommended_url, params) Util.convert_to_tamber_object(response) end def self.similar(params={}) response = request(:get, self.similar_url, params) Util.convert_to_tamber_object(response) end def self.recommendedSimilar(params={}) response = request(:get, self.recommendedSimilar_url, params) Util.convert_to_tamber_object(response) end def self.meta(params={}) response = request(:get, self.meta_url, params) Util.convert_to_tamber_object(response) end def self.popular(params={}) response = request(:get, self.popular_url, params) Util.convert_to_tamber_object(response) end def self.hot(params={}) response = request(:get, self.hot_url, params) Util.convert_to_tamber_object(response) end def self.uac(params={}) response = request(:get, self.uac_url, params) Util.convert_to_tamber_object(response) end def self.new(params={}) response = request(:get, self.new_url, params) Util.convert_to_tamber_object(response) end def self.recommended_url url + '/recommended' end def self.similar_url url + '/similar' end def self.recommendedSimilar_url url + '/recommended_similar' end def self.next_url url + '/next' end def self.meta_url url + '/meta' end def self.popular_url url + '/popular' end def self.hot_url url + '/hot' end def self.uac_url url + '/uac' end def self.new_url url + '/new' end end # Discover requests return an array of 'discovery' objects class Discovery < TamberObject end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tamber-0.1.11 | lib/tamber/discover.rb |
tamber-0.1.10 | lib/tamber/discover.rb |
tamber-0.1.9 | lib/tamber/discover.rb |