lib/sauce/job.rb in sauce-0.18.3 vs lib/sauce/job.rb in sauce-0.19.0
- old
+ new
@@ -11,10 +11,11 @@
attr_accessor :id, :owner, :status, :error
attr_accessor :name, :browser, :browser_version, :os
attr_accessor :creation_time, :start_time, :end_time
attr_accessor :public, :video_url, :log_url, :tags
+ attr_accessor :passed
# Get the class @@client.
# TODO: Consider metaprogramming this away
def self.client
@@client
@@ -112,11 +113,12 @@
:start_time => @start_time,
:end_time => @end_time,
:video_url => @video_url,
:log_url => @log_url,
:public => @public,
- :tags => @tags
+ :tags => @tags,
+ :passed => @passed
}
options[:except].each { |key| json.delete(key) } if options[:except]
json = json.select { |key,value| options[:only].include? key } if options[:only]
@@ -148,9 +150,10 @@
@end_time = options["end_time"].to_i
@video_url = options["video_url"]
@log_url = options["log_url"]
@public = options["public"]
@tags = options["tags"]
+ @passed = options["passed"]
raise NoIDError if @id.nil? or @id.empty?
end
end
end