Class: BqQuery::Attribute::Boolean

Inherits:
Base
  • Object
show all
Defined in:
lib/bq_query/attribute/boolean.rb

Instance Attribute Summary

Attributes inherited from Base

#name, #type, #value

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from BqQuery::Attribute::Base

Instance Method Details

#parseObject



4
5
6
7
8
9
10
# File 'lib/bq_query/attribute/boolean.rb', line 4

def parse
  case @value
  when nil     then nil
  when 'true'  then true
  when 'false' then false
  end
end