Sha256: 122b16481765a2fdf964c49d9bf9e11d986d390965b55801a19795414ae97a5c

Contents?: true

Size: 507 Bytes

Versions: 1

Compression:

Stored size: 507 Bytes

Contents

module Idonethis
  module Index
    class << self
      def dones(params={})
        %Q{#{dones_base_earl}?#{params.map{|k,v| "#{k}=#{v}"}.join('&')}}
      end
      
      def teams()
        teams_base_earl
      end
      
      private
      
      def dones_base_earl
       "#{base_earl}/dones/"
      end
      
      def teams_base_earl
       "#{base_earl}/teams/"
      end
      
      def base_earl
        "https://idonethis.com/api/v0.1"
      end
    end 
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
idonethis-cli-0.12.0 lib/idonethis/index.rb