Sha256: ca7760b68f339b69174870abbeac3cbdf7664bf6f9abc510e560e47eddf6a505

Contents?: true

Size: 780 Bytes

Versions: 6

Compression:

Stored size: 780 Bytes

Contents

module HockeyBrake
  class Configuration

    # The application bundle id
    attr_accessor :app_bundle_id

    # The app id of the application
    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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
hockeybrake-0.0.8 lib/hockeybrake/configuration.rb
hockeybrake-0.0.7 lib/hockeybrake/configuration.rb
hockeybrake-0.0.6 lib/hockeybrake/configuration.rb
hockeybrake-0.0.5 lib/hockeybrake/configuration.rb
hockeybrake-0.0.4 lib/hockeybrake/configuration.rb
hockeybrake-0.0.3 lib/hockeybrake/configuration.rb