Class: TrackTweets::TrackItem

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

Class Method Summary collapse

Class Method Details

.all(group_id, options = {}) ⇒ Object


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

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

.tweets(id, options = {}) ⇒ Object


20
21
22
# File 'lib/track_tweets/track_item.rb', line 20

def tweets(id, options = {})
  resource get("/track_items/#{id}/tweets.#{format}", :query => options)
end