Class: BqFactory::Table

Inherits:
Object
  • Object
show all
Defined in:
lib/bq_factory/table.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, dataset, schema = nil) ⇒ Table

Returns a new instance of Table.



6
7
8
9
10
# File 'lib/bq_factory/table.rb', line 6

def initialize(name, dataset, schema = nil)
  @name = name
  @dataset = dataset
  @schema = schema
end

Instance Attribute Details

#datasetObject (readonly)

Returns the value of attribute dataset.



3
4
5
# File 'lib/bq_factory/table.rb', line 3

def dataset
  @dataset
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/bq_factory/table.rb', line 3

def name
  @name
end

#schemaObject

Returns the value of attribute schema.



4
5
6
# File 'lib/bq_factory/table.rb', line 4

def schema
  @schema
end