lib/hockeybrake/configuration.rb in hockeybrake-0.0.2 vs lib/hockeybrake/configuration.rb in hockeybrake-0.0.3
- old
+ new
@@ -8,20 +8,30 @@
attr_accessor :app_id
# The app version
attr_accessor :app_version
+ # Allow to disable resque support
+ attr_accessor :no_resque_handler
+
# The service url
def hockey_url
"https://rink.hockeyapp.net/api/2/apps/#{app_id}/crashes/upload"
end
+ # ctor
+ def initialize
+ # resque is enable by default
+ self.no_resque_handler = false
+ end
+
# convert to hash
def to_hash
h = Hash.new
h[:app_id] = self.app_id
h[:app_version] = self.app_version
h[:hockey_url] = self.hockey_url
+ h[:no_resque_handler] = self.no_resque_handler
h
end
end
end
\ No newline at end of file