class Incentivale::Resources::Egift
Constants
- ENDPOINTS
Public Instance Methods
available?(sku, amount_premium = 1)
click to toggle source
# File lib/incentivale/resources/egift.rb, line 6 def available?(sku, amount_premium = 1) resp = client.get(ENDPOINTS[:availability], { sku: sku, amount_premium: amount_premium }) resp.availability end
create(resource)
click to toggle source
# File lib/incentivale/resources/egift.rb, line 11 def create(resource) client.post(ENDPOINTS[:create], resource) end