Sha256: 24ac8fbac33c2f2cf689d6541814eb6dd773a0bbc4636e569bcabc45bde6c65a

Contents?: true

Size: 368 Bytes

Versions: 2

Compression:

Stored size: 368 Bytes

Contents

module RestfulMetrics

  class Endpoint

    class << self
      
      def metrics
        endpoint_url "metrics.json"
      end
      
      def compound_metrics
        endpoint_url "compound_metrics.json"
      end

      def endpoint_url(path)
        realm = (ENV['RESTFUL_METRICS_REALM'] || REALM)
        [realm, path].join('/')
      end

    end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
restful_metrics-2.0.0.pre.alpha.1 lib/restful_metrics/endpoint.rb
restful_metrics-1.1.5 lib/restful_metrics/endpoint.rb