class Payture::Api
Public Class Methods
new(options={})
click to toggle source
# File lib/payture/api.rb, line 9 def initialize(options={}) options = Payture.options.merge(options) Configuration::VALID_OPTIONS_KEYS.each do |key| send("#{key}=", options[key]) end end
Public Instance Methods
convert_to_underscore(key)
click to toggle source
# File lib/payture/api.rb, line 23 def convert_to_underscore(key) key.scan(/[A-Z][a-z]*/).join("_").downcase end
host()
click to toggle source
# File lib/payture/api.rb, line 19 def host "https://#{host_type}.#{Configuration::DOMAIN}/#{api_type}/" end