Class: TrackTweets::Group

Inherits:
Client
  • Object
show all
Defined in:
lib/track_tweets/group.rb

Class Method Summary collapse

Class Method Details

.all(options = {}) ⇒ Object


8
9
10
# File 'lib/track_tweets/group.rb', line 8

def all(options = {})
  resource get("/groups.#{format}", :query => options)
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, options = {})
  resource get("/groups/#{id}.#{format}", :query => options)
end