Class: Payture::Api
Direct Known Subclasses
Client
Instance Method Summary
collapse
Methods included from Request
#delete, #get, #post, #put
Constructor Details
#initialize(options = {}) ⇒ Api
Returns a new instance of Api.
Instance Method Details
#convert_to_underscore(key) ⇒ Object
23
24
25
|
# File 'lib/payture/api.rb', line 23
def convert_to_underscore(key)
key.scan(/[A-Z][a-z]*/).join("_").downcase
end
|
#host ⇒ Object
19
20
21
|
# File 'lib/payture/api.rb', line 19
def host
"https://#{host_type}.#{Configuration::DOMAIN}/#{api_type}/"
end
|