Class: Fluent::BigQuery::DateFieldSchema
Instance Attribute Summary
Attributes inherited from FieldSchema
#mode, #name
Instance Method Summary
collapse
Methods inherited from FieldSchema
#format, #initialize, #to_h
Instance Method Details
130
131
132
133
134
135
136
|
# File 'lib/fluent/plugin/bigquery/schema.rb', line 130
def format_one(value)
if value.respond_to?(:strftime)
value.strftime("%Y-%m-%d")
else
value
end
end
|
#type ⇒ Object
126
127
128
|
# File 'lib/fluent/plugin/bigquery/schema.rb', line 126
def type
:date
end
|