class Twizo::Client

Constants

API_USERNAME
API_VERSION
LIB_NAME
LIB_VERSION

Public Class Methods

new(api_key, api_host) click to toggle source

Constructor

@param [String] api_key @param [String] api_host

# File lib/twizo/client.rb, line 27
def initialize(api_key, api_host)
  @api_key, @api_host = api_key, api_host
end

Public Instance Methods

user_agent() click to toggle source

@return [String]

# File lib/twizo/client.rb, line 34
def user_agent
  sprintf('%s/%s Ruby/%s/%s',
          LIB_NAME,
          LIB_VERSION,
          RUBY_VERSION,
          RUBY_PLATFORM
  )
end