module Nexmo::UserAgent
Public Class Methods
string(app_name, app_version)
click to toggle source
# File lib/nexmo/user_agent.rb, line 6 def self.string(app_name, app_version) identifiers = [] identifiers << 'nexmo-ruby/' + VERSION identifiers << 'ruby/' + RUBY_VERSION identifiers << app_name + '/' + app_version if app_name && app_version identifiers.join(' ') end