module Giftbit::Methods
Public Instance Methods
account()
click to toggle source
# File lib/giftbit.rb, line 29 def account get '' end
campaign(params = {})
click to toggle source
# File lib/giftbit.rb, line 49 def campaign(params = {}) get 'campaign', params: params end
create_gift(body = {})
click to toggle source
# File lib/giftbit.rb, line 57 def create_gift(body = {}) body[:expiry] ||= (Date.today + 365).to_s post 'campaign', body: body end
delete_gift(gift_uuid)
click to toggle source
# File lib/giftbit.rb, line 63 def delete_gift(gift_uuid) delete "gifts/#{gift_uuid}" end
funds()
click to toggle source
# File lib/giftbit.rb, line 33 def funds get 'funds' end
get_links(campaign_id)
click to toggle source
# File lib/giftbit.rb, line 71 def get_links(campaign_id) get "links/#{campaign_id}" end
gifts(params = {})
click to toggle source
# File lib/giftbit.rb, line 53 def gifts(params = {}) get 'gifts', params: params end
marketplace(params = {})
click to toggle source
# File lib/giftbit.rb, line 37 def marketplace(params = {}) get 'marketplace', params: params end
regions(params = {})
click to toggle source
# File lib/giftbit.rb, line 41 def regions(params = {}) get 'marketplace/regions', params: params end
resend_gift(gift_uuid)
click to toggle source
# File lib/giftbit.rb, line 67 def resend_gift(gift_uuid) put "gifts/#{gift_uuid}", body: {resend: true} end
vendors(params = {})
click to toggle source
# File lib/giftbit.rb, line 45 def vendors(params = {}) get 'marketplace/vendors', params: params end