Module: UserAgentDB

Defined in:
lib/user_agent_db.rb,
lib/user_agent_db/cli.rb,
lib/user_agent_db/version.rb

Defined Under Namespace

Classes: Cli

Constant Summary collapse

VERSION =
'0.1.0'.freeze

Class Method Summary collapse

Class Method Details

.randomString

Returns:

  • (String)


6
7
8
9
10
# File 'lib/user_agent_db.rb', line 6

def random
  Cli.new.random.tap do |value|
    raise('UserAgent is nil, but it can not') unless value[/\w/]
  end
end