Sha256: 468019a1c0d02969b5971d3f08cdb9ff75358a20ee0df61ef7c89ef560232ccc

Contents?: true

Size: 336 Bytes

Versions: 38

Compression:

Stored size: 336 Bytes

Contents

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

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
tracker_api-1.0.0 lib/tracker_api/endpoints/project.rb
tracker_api-0.2.12 lib/tracker_api/endpoints/project.rb
tracker_api-0.2.11 lib/tracker_api/endpoints/project.rb
tracker_api-0.2.10 lib/tracker_api/endpoints/project.rb
v2gpti-1.2.3 tracker_api/lib/tracker_api/endpoints/project.rb
v2gpti-1.2.2 tracker_api/lib/tracker_api/endpoints/project.rb
tracker_api-0.2.9 lib/tracker_api/endpoints/project.rb
v2gpti-1.2.1 tracker_api/lib/tracker_api/endpoints/project.rb
v2gpti-1.2.0 tracker_api/lib/tracker_api/endpoints/project.rb
tracker_api-0.2.8 lib/tracker_api/endpoints/project.rb
tracker_api-0.2.7 lib/tracker_api/endpoints/project.rb
tracker_api-0.2.6 lib/tracker_api/endpoints/project.rb
tracker_api-0.2.5 lib/tracker_api/endpoints/project.rb
tracker_api-0.2.4 lib/tracker_api/endpoints/project.rb
tracker_api-0.2.3 lib/tracker_api/endpoints/project.rb
tracker_api-0.2.2 lib/tracker_api/endpoints/project.rb
tracker_api-0.2.1 lib/tracker_api/endpoints/project.rb
tracker_api-0.2.0 lib/tracker_api/endpoints/project.rb