Class: TrackTweets::TrackItem
- Defined in:
- lib/track_tweets/track_item.rb
Class Method Summary collapse
- .all(group_id, options = {}) ⇒ Object
- .create(group_id, attributtes) ⇒ Object
- .destroy(id) ⇒ Object
- .find(id, options = {}) ⇒ Object
- .tweets(id, options = {}) ⇒ Object
Class Method Details
.all(group_id, options = {}) ⇒ Object
8 9 10 |
# File 'lib/track_tweets/track_item.rb', line 8 def all(group_id, = {}) resource get("/groups/#{group_id}/track_items.#{format}", :query => ) end |
.create(group_id, attributtes) ⇒ Object
4 5 6 |
# File 'lib/track_tweets/track_item.rb', line 4 def create(group_id, attributtes) resource post("/groups/#{group_id}/track_items.#{format}", :body => { :track_item => attributtes }) end |
.destroy(id) ⇒ Object
16 17 18 |
# File 'lib/track_tweets/track_item.rb', line 16 def destroy(id) resource delete("/track_items/#{id}.#{format}") end |
.find(id, options = {}) ⇒ Object
12 13 14 |
# File 'lib/track_tweets/track_item.rb', line 12 def find(id, = {}) resource get("/track_items/#{id}.#{format}", :query => ) end |
.tweets(id, options = {}) ⇒ Object
20 21 22 |
# File 'lib/track_tweets/track_item.rb', line 20 def tweets(id, = {}) resource get("/track_items/#{id}/tweets.#{format}", :query => ) end |