Sha256: 22a4377512e1854723da2bcfa449cecfca3b6c67d5014ce9d9631ff4764ce095

Contents?: true

Size: 345 Bytes

Versions: 2

Compression:

Stored size: 345 Bytes

Contents

module TrackerApi
  module Endpoints
    class Workspace
      attr_accessor :client

      def initialize(client)
        @client = client
      end

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tracker_api-1.3.0 lib/tracker_api/endpoints/workspace.rb
tracker_api-1.2.1 lib/tracker_api/endpoints/workspace.rb