class Saucer::PlatformConfiguration
Attributes
browser[RW]
browser_version[RW]
os[RW]
Public Class Methods
new(opt = {})
click to toggle source
# File lib/saucer/platform_configuration.rb, line 7 def initialize(opt = {}) @browser = opt[:browser] @os = opt[:os] || opt['os'].downcase.tr(' ', '_').tr(',', '_') @browser_version = opt[:browser_version] || opt['short_version'] end
Public Instance Methods
name()
click to toggle source
# File lib/saucer/platform_configuration.rb, line 17 def name "#{@os}_#{@browser}_#{@browser_version}".to_sym end
to_hash()
click to toggle source
# File lib/saucer/platform_configuration.rb, line 13 def to_hash Platform.send(@os).send(@browser).send("v#{@browser_version}") end