bigquery 0.1.5 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/bigquery.rb +16 -0
- metadata +1 -1
data/lib/bigquery.rb
CHANGED
@@ -44,6 +44,22 @@ class BigQuery
|
|
44
44
|
})
|
45
45
|
end
|
46
46
|
|
47
|
+
def job(id, opts = {})
|
48
|
+
opts['jobId'] = id
|
49
|
+
|
50
|
+
api({
|
51
|
+
:api_method => @bq.jobs.get,
|
52
|
+
:parameters => opts
|
53
|
+
})
|
54
|
+
end
|
55
|
+
|
56
|
+
def jobs(opts = {})
|
57
|
+
api({
|
58
|
+
:api_method => @bq.jobs.list,
|
59
|
+
:parameters => opts
|
60
|
+
})
|
61
|
+
end
|
62
|
+
|
47
63
|
def tables(dataset = @dataset)
|
48
64
|
api({
|
49
65
|
:api_method => @bq.tables.list,
|