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