module ParichkiBg

Constants

VERSION
secret_key
vendor_id

Public Class Methods

hmac(string) click to toggle source
# File lib/parichki_bg.rb, line 40
def hmac(string)
  OpenSSL::HMAC.hexdigest("sha256", secret_key, string)      
end
main_api_url() click to toggle source
# File lib/parichki_bg.rb, line 36
def main_api_url
  "https://api.dir.bg"
end
secret_key() click to toggle source
# File lib/parichki_bg.rb, line 24
def secret_key
  @@secret_key
end
secret_key=(secret_key) click to toggle source
# File lib/parichki_bg.rb, line 32
def secret_key=(secret_key)
  @@secret_key = secret_key
end
vendor_id() click to toggle source
# File lib/parichki_bg.rb, line 20
def vendor_id
  @@vendor_id
end
vendor_id=(vendor_id) click to toggle source
# File lib/parichki_bg.rb, line 28
def vendor_id=(vendor_id)
  @@vendor_id = vendor_id
end