Class: BqGuess::Fields::Null

Inherits:
Base
  • Object
show all
Defined in:
lib/bq_guess/fields/null.rb

Instance Attribute Summary

Attributes inherited from Base

#mode, #name, #type

Instance Method Summary collapse

Methods inherited from Base

#as_schema, #nullable!, #nullable?, #repeated!, #repeated?, #required!, #required?, #to_hash

Constructor Details

#initialize(name) ⇒ Null

Returns a new instance of Null.



8
9
10
11
12
# File 'lib/bq_guess/fields/null.rb', line 8

def initialize(name)
  super
  @type = :string
  nullable!
end