Module: Nexmo::UserAgent

Defined in:
lib/nexmo/user_agent.rb

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

.string(app_name, app_version) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/nexmo/user_agent.rb', line 5

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