Class: BladeRunner::Session

Inherits:
Model
  • Object
show all
Defined in:
lib/blade_runner/session.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Model

all, find, models, remove, size

Class Method Details

.combined_test_resultsObject



9
10
11
# File 'lib/blade_runner/session.rb', line 9

def combined_test_results
  BladeRunner::CombinedTestResults.new(all)
end

.create(attributes) ⇒ Object



3
4
5
6
7
# File 'lib/blade_runner/session.rb', line 3

def create(attributes)
  model = super
  model.test_results = BladeRunner::TestResults.new(model.id)
  model
end

Instance Method Details

#to_sObject



14
15
16
# File 'lib/blade_runner/session.rb', line 14

def to_s
  @to_s ||= "#{ua.browser} #{ua.version} #{ua.platform}"
end