Class: Fluent::BigQuery::Writer::JobReference

Inherits:
Struct
  • Object
show all
Defined in:
lib/fluent/plugin/bigquery/writer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#chunk_idObject

Returns the value of attribute chunk_id

Returns:

  • (Object)

    the current value of chunk_id



115
116
117
# File 'lib/fluent/plugin/bigquery/writer.rb', line 115

def chunk_id
  @chunk_id
end

#chunk_id_hexObject

Returns the value of attribute chunk_id_hex

Returns:

  • (Object)

    the current value of chunk_id_hex



115
116
117
# File 'lib/fluent/plugin/bigquery/writer.rb', line 115

def chunk_id_hex
  @chunk_id_hex
end

#dataset_idObject

Returns the value of attribute dataset_id

Returns:

  • (Object)

    the current value of dataset_id



115
116
117
# File 'lib/fluent/plugin/bigquery/writer.rb', line 115

def dataset_id
  @dataset_id
end

#job_idObject

Returns the value of attribute job_id

Returns:

  • (Object)

    the current value of job_id



115
116
117
# File 'lib/fluent/plugin/bigquery/writer.rb', line 115

def job_id
  @job_id
end

#project_idObject

Returns the value of attribute project_id

Returns:

  • (Object)

    the current value of project_id



115
116
117
# File 'lib/fluent/plugin/bigquery/writer.rb', line 115

def project_id
  @project_id
end

#table_idObject

Returns the value of attribute table_id

Returns:

  • (Object)

    the current value of table_id



115
116
117
# File 'lib/fluent/plugin/bigquery/writer.rb', line 115

def table_id
  @table_id
end

Instance Method Details

#as_hash(*keys) ⇒ Object



116
117
118
119
120
121
122
# File 'lib/fluent/plugin/bigquery/writer.rb', line 116

def as_hash(*keys)
  if keys.empty?
    to_h
  else
    to_h.select { |k, _| keys.include?(k) }
  end
end