Class: Google::Visualization::DataCell

Inherits:
DataElement show all
Defined in:
lib/google_visualization/data_cell.rb

Overview

DataCell

Description

Represents a single cell value in a DataTable.

Instance Method Summary collapse

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_valueObject

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

#valueObject

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