Method: Voucherify#initialize

Defined in:
lib/voucherify.rb

#initialize(options) ⇒ Voucherify

Returns a new instance of Voucherify.



8
9
10
11
12
13
14
15
16
17
# File 'lib/voucherify.rb', line 8

def initialize(options)
  @backend_url = "https://api.voucherify.io/v1"
  @options = options
  @headers = {
    "X-App-Id" => @options["applicationId"],
    "X-App-Token" => @options["clientSecretKey"],
    "X-Voucherify-Channel" => "Ruby-SDK",
    :accept => :json
  }
end