Class: Mavenlink::Workspace

Inherits:
APIResource show all
Defined in:
lib/mavenlink/resources/workspace.rb

Constant Summary collapse

OBJECT_NAME =
"workspace"

Class Method Summary collapse

Methods inherited from APIResource

#initialize, list, plural_name, #refresh, resource_url, #resource_url, retrieve

Methods included from APIOperations::Request

included

Constructor Details

This class inherits a constructor from Mavenlink::APIResource

Class Method Details

.list_invoices(id) ⇒ Object



7
8
9
10
# File 'lib/mavenlink/resources/workspace.rb', line 7

def self.list_invoices(id)
  response = get("/invoices?workspace_id=#{id}")
  List.new(Invoice, response)
end