Sha256: 98e6a9422250cf2cb13e737525528604c8e8acdbcb4090280332120a7356fc4a

Contents?: true

Size: 711 Bytes

Versions: 1

Compression:

Stored size: 711 Bytes

Contents

module ReplayApi
  class << self
    attr_accessor :configuration
  end

  def self.configure
    self.configuration ||= Configuration.new
    yield configuration
  end

  class Configuration
    attr_accessor :replay_key
    attr_accessor :replay_server
    attr_accessor :ssl

    def initialize
      @replay_server = 'api.replay.io'
      @ssl = true
    end

    alias_method :ssl?, :ssl

    def extend_event_properties(&block)
      yield EventPropertiesExtensions
      ReplayApi::EventProperties.include EventPropertiesExtensions
    end

    def extend_trait_properties(&block)
      yield TraitPropertiesExtensions
      ReplayApi::TraitProperties.include TraitPropertiesExtensions
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
replay_api-0.0.3 lib/replay_api/configuration.rb