Sha256: f5f804ff7a55afc80aad0010eef60510e0c1f7fa301594aed84bb15501f76aab

Contents?: true

Size: 681 Bytes

Versions: 5

Compression:

Stored size: 681 Bytes

Contents

class Fab

  AGENT_LIST = [
    "Mozilla/5.0 (iPhone; CPU iPhone OS 5_0_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Mobile/9A405",
    "Mozilla/5.0 (iPhone; CPU iPhone OS 5_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Mobile/9B179",
    "Mozilla/5.0 (Linux; U; Android 2.3.5; en-us; SCH-I500 Build/GINGERBREAD) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1",
    "Mozilla/5.0 (Linux; U; Android 4.0.3; en-us; EVO Build/IML74K) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30"
  ]

  attr_accessor :agent_list

  def agent
    agent_list.sample
  end

  def agent_list
    @agent_list ||= AGENT_LIST
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sixarm_ruby_fab-1.1.0 lib/sixarm_ruby_fab/agent.rb
sixarm_ruby_fab-1.0.4 lib/sixarm_ruby_fab/agent.rb
sixarm_ruby_fab-1.0.2 lib/sixarm_ruby_fab/agent.rb
sixarm_ruby_fab-1.0.1 lib/sixarm_ruby_fab/agent.rb
sixarm_ruby_fab-1.0.0 lib/sixarm_ruby_fab/agent.rb