Module: Skittles::Client::Tip
- Included in:
- Skittles::Client
- Defined in:
- lib/skittles/client/tip.rb
Overview
Define methods related to tips.
Instance Method Summary (collapse)
-
- (Hashie::Mash) add_tip(id, text, options = {})
Allows a user to add a new tip at a venue.
-
- (Hashie::Mash) tip(id)
Gives details about a tip, including which users (especially friends) have marked the tip to-do or done.
-
- (Hashie::Mash) tip_markdone(id)
Allows the acting user to mark a tip done.
-
- (Hashie::Mash) tip_marktodo(id)
Allows you to mark a tip to-do.
-
- (Hashie::Mash) tip_search(ll, options = {})
Returns a list of tips near the area specified.
-
- (Hashie::Mash) tip_unmark(id)
Allows you to remove a tip from your to-do list or done list.
Instance Method Details
- (Hashie::Mash) add_tip(id, text, options = {})
Allows a user to add a new tip at a venue.
15 16 17 18 19 20 |
# File 'lib/skittles/client/tip.rb', line 15 def add_tip(id, text, = {}) post("tips/add", { :venueId => id, :text => text }.merge()).tip end |
- (Hashie::Mash) tip(id)
Gives details about a tip, including which users (especially friends) have marked the tip to-do or done.
29 30 31 |
# File 'lib/skittles/client/tip.rb', line 29 def tip(id) get("tips/#{id}").tip end |
- (Hashie::Mash) tip_markdone(id)
Allows the acting user to mark a tip done.
39 40 41 |
# File 'lib/skittles/client/tip.rb', line 39 def tip_markdone(id) post("tips/#{id}/markdone").todo end |
- (Hashie::Mash) tip_marktodo(id)
Allows you to mark a tip to-do.
49 50 51 |
# File 'lib/skittles/client/tip.rb', line 49 def tip_marktodo(id) post("tips/#{id}/marktodo").todo end |
- (Hashie::Mash) tip_search(ll, options = {})
Returns a list of tips near the area specified.
64 65 66 |
# File 'lib/skittles/client/tip.rb', line 64 def tip_search(ll, = {}) get("tips/search", { :ll => ll }.merge()).tips end |
- (Hashie::Mash) tip_unmark(id)
Allows you to remove a tip from your to-do list or done list.
74 75 76 |
# File 'lib/skittles/client/tip.rb', line 74 def tip_unmark(id) post("tips/#{id}/unmark").tip end |