Sha256: 0bdab77b94ce5295087408d1f1ae27b28570b6773104e7dc35906b4f9461cf58

Contents?: true

Size: 446 Bytes

Versions: 1

Compression:

Stored size: 446 Bytes

Contents

module GifterHub
  class GiftCard < ApiResource
    extend Operations::Create

    def redeem(params)
      response = request(:post, resource_url + '/redeem', params)
      initialize_from(response)
    end

    def topup(params)
      response = request(:post, resource_url + '/topup', params)
      initialize_from(response)
    end

    def transactions(params={})
      request(:get, resource_url + '/transactions', params)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gifter_hub-0.1.7 lib/gifter_hub/gift_card.rb