Method: Github::Client::Projects::Cards#list

Defined in:
lib/github_api2/client/projects/cards.rb

#list(*args) ⇒ Object Also known as: all

List project cards for a column

Examples:

github = Github.new
github.projects.cards.list :column_id

See Also:



19
20
21
22
23
24
25
26
27
28
29
# File 'lib/github_api2/client/projects/cards.rb', line 19

def list(*args)
  arguments(args, required: [:column_id])
  params = arguments.params

  params["accept"] ||= ::Github::Client::Projects::PREVIEW_MEDIA

  response = get_request("/projects/columns/#{arguments.column_id}/cards", params)

  return response unless block_given?
  response.each { |el| yield el }
end