Module: Skittles::Client::Special
- Included in:
- Skittles::Client
- Defined in:
- lib/skittles/client/special.rb
Overview
Define methods related to specials.
Instance Method Summary (collapse)
-
- (Object) flag_special(special_id, venue_id, problem, options = {})
Allows users to indicate a special is improper in some way.
-
- (Hashie::Mash) special(special_id, venue_id)
Gives details about a special, including text and unlock rules.
-
- (Hashie::Mash) special_search(ll, options = {})
Returns a list of specials near the current location.
Instance Method Details
- (Object) flag_special(special_id, venue_id, problem, options = {})
Allows users to indicate a special is improper in some way.
15 16 17 18 |
# File 'lib/skittles/client/special.rb', line 15 def flag_special(special_id, venue_id, problem, = {}) post("specials/#{special_id}/flag", { :venueId => venue_id, :problem => problem }.merge()) nil end |
- (Hashie::Mash) special(special_id, venue_id)
Gives details about a special, including text and unlock rules.
26 27 28 |
# File 'lib/skittles/client/special.rb', line 26 def special(special_id, venue_id) get("specials/#{special_id}", :venueId => venue_id).special end |
- (Hashie::Mash) special_search(ll, options = {})
Note:
This is an experimental API.
Returns a list of specials near the current location.
42 43 44 |
# File 'lib/skittles/client/special.rb', line 42 def special_search(ll, = {}) get('specials/search', { :ll => ll }.merge()).specials end |