Class: Yancya::BigQuery::Projects

Inherits:
Resource
  • Object
show all
Defined in:
lib/yancya/big_query/projects.rb

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Constructor Details

This class inherits a constructor from Yancya::BigQuery::Resource

Instance Method Details

#listObject



7
8
9
10
11
12
13
14
15
# File 'lib/yancya/big_query/projects.rb', line 7

def list
  resources = execute(
    api_method: @bq.api.projects.list
  )

  resources["projects"].map do |resource|
    BigQuery::Project.new(resource: resource, bq: @bq)
  end
end