Skip to content
This repository has been archived by the owner on Jun 12, 2019. It is now read-only.

Expose client via attr_reader #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/big_query/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
6 changes: 0 additions & 6 deletions test/bigquery.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down