Sha256: e40ec3cbd95a2282f6b1eec8f64086d4d84854108ba11e8da6b7c83df2effede
Contents?: true
Size: 565 Bytes
Versions: 1
Compression:
Stored size: 565 Bytes
Contents
module StreamElements class TipsResource < Resource def list(channel:, after:, sort:, limit:, **params) attrs = { after: after, sort: sort, limit: limit }.merge(params) response = get_request("tips/#{channel}", params: attrs) Collection.from_response(response, type: Tip, name: "docs") end def retrieve(channel:, id:) Tip.new get_request("tips/#{channel}/#{id}").body end def top(channel:) response = get_request("tips/#{channel}/top") Collection.from_response(response, type: TopTip) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
streamelements-0.5.0 | lib/stream_elements/resources/tips.rb |