Class: Google::Visualization::DataType
- Inherits:
-
Object
- Object
- Google::Visualization::DataType
- Defined in:
- lib/google_visualization/data_type.rb
Overview
DataType
Description
Represents a data type for a DataColumn.
Constant Summary collapse
- STRING =
DataType.new(:string)
- NUMBER =
DataType.new(:number)
- BOOLEAN =
DataType.new(:boolean)
- DATE =
DataType.new(:date)
- DATETIME =
DataType.new(:datetime)
- TIMEOFDAY =
DataType.new(:timeofday)
Instance Method Summary collapse
-
#initialize(name) ⇒ DataType
constructor
Creates a new type.
-
#to_s ⇒ Object
Returns a string representing the type.
Constructor Details
#initialize(name) ⇒ DataType
Creates a new type.
16 17 18 |
# File 'lib/google_visualization/data_type.rb', line 16 def initialize(name) @name = name end |
Instance Method Details
#to_s ⇒ Object
Returns a string representing the type.
23 24 25 |
# File 'lib/google_visualization/data_type.rb', line 23 def to_s @name.to_s end |