Sha256: 4f1af346c2159c05c04fb9106c1ddc9f6f27e12b330dc737ab98a5201fd833f9
Contents?: true
Size: 467 Bytes
Versions: 18
Compression:
Stored size: 467 Bytes
Contents
module TrackerApi module Endpoints class Workspaces attr_accessor :client def initialize(client) @client = client end def get(params={}) data = client.paginate('/my/workspaces', params: params) raise Errors::UnexpectedData, 'Array of workspaces expected' unless data.is_a? Array data.map { |workspace| Resources::Workspace.new({ client: client }.merge(workspace)) } end end end end
Version data entries
18 entries across 18 versions & 1 rubygems