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.16.0 lib/tracker_api/endpoints/project.rb
tracker_api-1.15.0 lib/tracker_api/endpoints/project.rb
tracker_api-1.14.0 lib/tracker_api/endpoints/project.rb
tracker_api-1.13.0 lib/tracker_api/endpoints/project.rb
tracker_api-1.12.0 lib/tracker_api/endpoints/project.rb
tracker_api-1.11.0 lib/tracker_api/endpoints/project.rb
tracker_api-1.10.0 lib/tracker_api/endpoints/project.rb
tracker_api-1.9.1 lib/tracker_api/endpoints/project.rb
tracker_api-1.9.0 lib/tracker_api/endpoints/project.rb
tracker_api-1.8.0 lib/tracker_api/endpoints/project.rb
tracker_api-1.7.1 lib/tracker_api/endpoints/project.rb
tracker_api-1.7.0 lib/tracker_api/endpoints/project.rb
tracker_api-1.6.0 lib/tracker_api/endpoints/project.rb
tracker_api-1.5.0 lib/tracker_api/endpoints/project.rb
tracker_api-1.4.1 lib/tracker_api/endpoints/project.rb
tracker_api-1.4.0 lib/tracker_api/endpoints/project.rb
tracker_api-1.3.0 lib/tracker_api/endpoints/project.rb
tracker_api-1.2.1 lib/tracker_api/endpoints/project.rb
tracker_api-1.1.1 lib/tracker_api/endpoints/project.rb
tracker_api-1.1.0 lib/tracker_api/endpoints/project.rb