diff --git a/lib/big_query/client.rb b/lib/big_query/client.rb index 88f4836..fa7ff58 100644 --- a/lib/big_query/client.rb +++ b/lib/big_query/client.rb @@ -13,6 +13,7 @@ class Client include BigQuery::Client::Insert attr_accessor :dataset, :project_id + attr_reader :client def initialize(opts = {}) @client = Google::APIClient.new( diff --git a/test/bigquery.rb b/test/bigquery.rb index 0391a5f..32057ef 100644 --- a/test/bigquery.rb +++ b/test/bigquery.rb @@ -4,12 +4,6 @@ require 'big_query' require 'pry-byebug' -module BigQuery - class Client - attr_accessor :client - end -end - class BigQueryTest < MiniTest::Unit::TestCase def setup @bq = BigQuery::Client.new(config)