Class: Google::Visualization::DataCell
- Inherits:
-
DataElement
- Object
- DataElement
- Google::Visualization::DataCell
- Defined in:
- lib/google_visualization/data_cell.rb
Overview
DataCell
Description
Represents a single cell value in a DataTable.
Instance Method Summary collapse
-
#formatted_value ⇒ Object
Returns the formatted value.
-
#formatted_value=(obj) ⇒ Object
Sets a formatted value.
-
#initialize(value = nil, formatted_value = nil) ⇒ DataCell
constructor
Creates a new cell.
-
#value ⇒ Object
Returns the value.
-
#value=(obj) ⇒ Object
Sets a value.
Methods inherited from DataElement
#custom_properties, #custom_properties_count, #custom_property, #store_custom_properties, #store_custom_property
Constructor Details
#initialize(value = nil, formatted_value = nil) ⇒ DataCell
Creates a new cell.
16 17 18 19 20 |
# File 'lib/google_visualization/data_cell.rb', line 16 def initialize(value=nil, formatted_value=nil) super() self.value = value self.formatted_value = formatted_value end |
Instance Method Details
#formatted_value ⇒ Object
Returns the formatted value.
39 40 41 |
# File 'lib/google_visualization/data_cell.rb', line 39 def formatted_value @formatted_value end |
#formatted_value=(obj) ⇒ Object
Sets a formatted value.
46 47 48 |
# File 'lib/google_visualization/data_cell.rb', line 46 def formatted_value=(obj) @formatted_value = obj end |
#value ⇒ Object
Returns the value.
25 26 27 |
# File 'lib/google_visualization/data_cell.rb', line 25 def value @value end |
#value=(obj) ⇒ Object
Sets a value.
32 33 34 |
# File 'lib/google_visualization/data_cell.rb', line 32 def value=(obj) @value = obj end |