Class: Talkable::API::Coupon

Inherits:
Base
  • Object
show all
Defined in:
lib/talkable/api/coupon.rb

Class Method Summary collapse

Methods inherited from Base

get, post, put

Class Method Details

.find(code) ⇒ Object



5
6
7
# File 'lib/talkable/api/coupon.rb', line 5

def find(code)
  get "/coupons/#{code}"
end

.permission(code, email_or_username) ⇒ Object



9
10
11
# File 'lib/talkable/api/coupon.rb', line 9

def permission(code, email_or_username)
  get "/coupons/#{code}/permission/#{email_or_username}"
end