Class: GoodData::GeoChartItem
Constant Summary
collapse
- EMPTY_OBJECT =
{
'geoChartItem' => {
'positionX' => 0,
'sizeY' => 200,
'sizeX' => 300,
'positionY' => 0
}
}
- ASSIGNABLE_MEMBERS =
DashboardItem::ASSIGNABLE_MEMBERS + [
:id,
:metric,
:layers_base_color
]
Instance Attribute Summary
#json, #tab
Attributes inherited from Rest::Object
#client, #json, #project
Class Method Summary
collapse
Instance Method Summary
collapse
#filters, #filters=, #position_x, #position_x=, #position_y, #position_y=, #size_x, #size_x=, #size_y, #size_y=
#obj_id
client, default_client, #saved?
#data_property_reader
#data_property_writer
#metadata_property_reader
#metadata_property_writer
#meta
#data
#root_key
#content
Constructor Details
#initialize(tab, json) ⇒ GeoChartItem
Returns a new instance of GeoChartItem.
36
37
38
|
# File 'lib/gooddata/models/metadata/dashboard/geo_chart_item.rb', line 36
def initialize(tab, json)
super
end
|
Instance Method Details
#layers_base_color ⇒ Object
48
49
50
|
# File 'lib/gooddata/models/metadata/dashboard/geo_chart_item.rb', line 48
def layers_base_color
data['layersBaseColor']
end
|
#layers_base_color=(new_layers_base_color) ⇒ Object
52
53
54
|
# File 'lib/gooddata/models/metadata/dashboard/geo_chart_item.rb', line 52
def layers_base_color=(new_layers_base_color)
data['layersBaseColor'] = new_layers_base_color
end
|
40
41
42
|
# File 'lib/gooddata/models/metadata/dashboard/geo_chart_item.rb', line 40
def metric
data['metric']
end
|
#metric=(new_metric) ⇒ Object
44
45
46
|
# File 'lib/gooddata/models/metadata/dashboard/geo_chart_item.rb', line 44
def metric=(new_metric)
data['metric'] = new_metric.respond_to?(:uri) ? new_metric.uri : new_metric
end
|