Module: Gyftwrapper

Defined in:
lib/gyftwrapper.rb,
lib/gyftwrapper/api.rb,
lib/gyftwrapper/version.rb

Defined Under Namespace

Classes: API

Constant Summary collapse

VERSION =
"0.2.0"

Class Method Summary collapse

Class Method Details

.get_merchantsObject



9
10
11
# File 'lib/gyftwrapper.rb', line 9

def self.get_merchants
  self.send_request(:get_merchants)
end

.purchase_card(params) ⇒ Object



5
6
7
# File 'lib/gyftwrapper.rb', line 5

def self.purchase_card(params)
  self.send_request(:purchase_card, params)
end

.send_request(call_type, params = {}) ⇒ Object



13
14
15
16
# File 'lib/gyftwrapper.rb', line 13

def self.send_request(call_type, params = {})
  api = Gyftwrapper::API.new
  api.send(call_type, params)
end