lib/vanity/metric/remote.rb
def remote(url = nil)
      @remote_url = URI.parse(url) if url
      @mutex ||= Mutex.new
      extend Remote
      @remote_url
    end
def remote(url = nil)
      @remote_url = URI.parse(url) if url
      @mutex ||= Mutex.new
      extend Remote
      @remote_url
    end
def remote ( url = nil ) @remote_url = URI . parse ( url ) if url @mutex ||= Mutex . new extend Remote @remote_url end
Specifies the base URL to use for a remote metric. For example:
   metric :sandbox do
     remote "http://api.vanitydash.com/metrics/sandbox"
   end
Specifies the base URL to use for a remote metric . For example : metric : sandbox do remote http : // api . vanitydash . com / metrics / sandbox end