dashofcode/tracker_api

View on GitHub
lib/tracker_api/endpoints/project.rb

Summary

Maintainability
A
0 mins
Test Coverage
module TrackerApi
  module Endpoints
    class Project
      attr_accessor :client

      def initialize(client)
        @client = client
      end

      def get(id, params={})
        data = client.get("/projects/#{id}", params: params).body

        Resources::Project.new({ client: client }.merge(data))
      end
    end
  end
end