Class: MicrosoftGraph::Models::WorkbookChart
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/workbook_chart.rb
Class Method Summary collapse
-
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value.
Instance Method Summary collapse
-
#axes ⇒ Object
Gets the axes property value.
-
#axes=(value) ⇒ Object
Sets the axes property value.
-
#data_labels ⇒ Object
Gets the dataLabels property value.
-
#data_labels=(value) ⇒ Object
Sets the dataLabels property value.
-
#format ⇒ Object
Gets the format property value.
-
#format=(value) ⇒ Object
Sets the format property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#height ⇒ Object
Gets the height property value.
-
#height=(value) ⇒ Object
Sets the height property value.
-
#initialize ⇒ Object
constructor
Instantiates a new workbookChart and sets the default values.
-
#left ⇒ Object
Gets the left property value.
-
#left=(value) ⇒ Object
Sets the left property value.
-
#legend ⇒ Object
Gets the legend property value.
-
#legend=(value) ⇒ Object
Sets the legend property value.
-
#name ⇒ Object
Gets the name property value.
-
#name=(value) ⇒ Object
Sets the name property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#series ⇒ Object
Gets the series property value.
-
#series=(value) ⇒ Object
Sets the series property value.
-
#title ⇒ Object
Gets the title property value.
-
#title=(value) ⇒ Object
Sets the title property value.
-
#top ⇒ Object
Gets the top property value.
-
#top=(value) ⇒ Object
Sets the top property value.
-
#width ⇒ Object
Gets the width property value.
-
#width=(value) ⇒ Object
Sets the width property value.
-
#worksheet ⇒ Object
Gets the worksheet property value.
-
#worksheet=(value) ⇒ Object
Sets the worksheet property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new workbookChart and sets the default values.
64 65 66 |
# File 'lib/models/workbook_chart.rb', line 64 def initialize() super end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
72 73 74 75 |
# File 'lib/models/workbook_chart.rb', line 72 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return WorkbookChart.new end |
Instance Method Details
#axes ⇒ Object
Gets the axes property value. Represents chart axes. Read-only.
49 50 51 |
# File 'lib/models/workbook_chart.rb', line 49 def axes return @axes end |
#axes=(value) ⇒ Object
Sets the axes property value. Represents chart axes. Read-only.
57 58 59 |
# File 'lib/models/workbook_chart.rb', line 57 def axes=(value) @axes = value end |
#data_labels ⇒ Object
Gets the dataLabels property value. Represents the datalabels on the chart. Read-only.
80 81 82 |
# File 'lib/models/workbook_chart.rb', line 80 def data_labels return @data_labels end |
#data_labels=(value) ⇒ Object
Sets the dataLabels property value. Represents the datalabels on the chart. Read-only.
88 89 90 |
# File 'lib/models/workbook_chart.rb', line 88 def data_labels=(value) @data_labels = value end |
#format ⇒ Object
Gets the format property value. Encapsulates the format properties for the chart area. Read-only.
95 96 97 |
# File 'lib/models/workbook_chart.rb', line 95 def format return @format end |
#format=(value) ⇒ Object
Sets the format property value. Encapsulates the format properties for the chart area. Read-only.
103 104 105 |
# File 'lib/models/workbook_chart.rb', line 103 def format=(value) @format = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 |
# File 'lib/models/workbook_chart.rb', line 110 def get_field_deserializers() return super.merge({ "axes" => lambda {|n| @axes = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::WorkbookChartAxes.create_from_discriminator_value(pn) }) }, "dataLabels" => lambda {|n| @data_labels = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::WorkbookChartDataLabels.create_from_discriminator_value(pn) }) }, "format" => lambda {|n| @format = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::WorkbookChartAreaFormat.create_from_discriminator_value(pn) }) }, "height" => lambda {|n| @height = n.get_object_value(lambda {|pn| Double.create_from_discriminator_value(pn) }) }, "left" => lambda {|n| @left = n.get_object_value(lambda {|pn| Double.create_from_discriminator_value(pn) }) }, "legend" => lambda {|n| @legend = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::WorkbookChartLegend.create_from_discriminator_value(pn) }) }, "name" => lambda {|n| @name = n.get_string_value() }, "series" => lambda {|n| @series = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::WorkbookChartSeries.create_from_discriminator_value(pn) }) }, "title" => lambda {|n| @title = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::WorkbookChartTitle.create_from_discriminator_value(pn) }) }, "top" => lambda {|n| @top = n.get_object_value(lambda {|pn| Double.create_from_discriminator_value(pn) }) }, "width" => lambda {|n| @width = n.get_object_value(lambda {|pn| Double.create_from_discriminator_value(pn) }) }, "worksheet" => lambda {|n| @worksheet = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::WorkbookWorksheet.create_from_discriminator_value(pn) }) }, }) end |
#height ⇒ Object
Gets the height property value. Represents the height, in points, of the chart object.
130 131 132 |
# File 'lib/models/workbook_chart.rb', line 130 def height return @height end |
#height=(value) ⇒ Object
Sets the height property value. Represents the height, in points, of the chart object.
138 139 140 |
# File 'lib/models/workbook_chart.rb', line 138 def height=(value) @height = value end |
#left ⇒ Object
Gets the left property value. The distance, in points, from the left side of the chart to the worksheet origin.
145 146 147 |
# File 'lib/models/workbook_chart.rb', line 145 def left return @left end |
#left=(value) ⇒ Object
Sets the left property value. The distance, in points, from the left side of the chart to the worksheet origin.
153 154 155 |
# File 'lib/models/workbook_chart.rb', line 153 def left=(value) @left = value end |
#legend ⇒ Object
Gets the legend property value. Represents the legend for the chart. Read-only.
160 161 162 |
# File 'lib/models/workbook_chart.rb', line 160 def legend return @legend end |
#legend=(value) ⇒ Object
Sets the legend property value. Represents the legend for the chart. Read-only.
168 169 170 |
# File 'lib/models/workbook_chart.rb', line 168 def legend=(value) @legend = value end |
#name ⇒ Object
Gets the name property value. Represents the name of a chart object.
175 176 177 |
# File 'lib/models/workbook_chart.rb', line 175 def name return @name end |
#name=(value) ⇒ Object
Sets the name property value. Represents the name of a chart object.
183 184 185 |
# File 'lib/models/workbook_chart.rb', line 183 def name=(value) @name = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 |
# File 'lib/models/workbook_chart.rb', line 191 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_object_value("axes", @axes) writer.write_object_value("dataLabels", @data_labels) writer.write_object_value("format", @format) writer.write_object_value("height", @height) writer.write_object_value("left", @left) writer.write_object_value("legend", @legend) writer.write_string_value("name", @name) writer.write_collection_of_object_values("series", @series) writer.write_object_value("title", @title) writer.write_object_value("top", @top) writer.write_object_value("width", @width) writer.write_object_value("worksheet", @worksheet) end |
#series ⇒ Object
Gets the series property value. Represents either a single series or collection of series in the chart. Read-only.
211 212 213 |
# File 'lib/models/workbook_chart.rb', line 211 def series return @series end |
#series=(value) ⇒ Object
Sets the series property value. Represents either a single series or collection of series in the chart. Read-only.
219 220 221 |
# File 'lib/models/workbook_chart.rb', line 219 def series=(value) @series = value end |
#title ⇒ Object
Gets the title property value. Represents the title of the specified chart, including the text, visibility, position and formating of the title. Read-only.
226 227 228 |
# File 'lib/models/workbook_chart.rb', line 226 def title return @title end |
#title=(value) ⇒ Object
Sets the title property value. Represents the title of the specified chart, including the text, visibility, position and formating of the title. Read-only.
234 235 236 |
# File 'lib/models/workbook_chart.rb', line 234 def title=(value) @title = value end |
#top ⇒ Object
Gets the top property value. Represents the distance, in points, from the top edge of the object to the top of row 1 (on a worksheet) or the top of the chart area (on a chart).
241 242 243 |
# File 'lib/models/workbook_chart.rb', line 241 def top return @top end |
#top=(value) ⇒ Object
Sets the top property value. Represents the distance, in points, from the top edge of the object to the top of row 1 (on a worksheet) or the top of the chart area (on a chart).
249 250 251 |
# File 'lib/models/workbook_chart.rb', line 249 def top=(value) @top = value end |
#width ⇒ Object
Gets the width property value. Represents the width, in points, of the chart object.
256 257 258 |
# File 'lib/models/workbook_chart.rb', line 256 def width return @width end |
#width=(value) ⇒ Object
Sets the width property value. Represents the width, in points, of the chart object.
264 265 266 |
# File 'lib/models/workbook_chart.rb', line 264 def width=(value) @width = value end |
#worksheet ⇒ Object
Gets the worksheet property value. The worksheet containing the current chart. Read-only.
271 272 273 |
# File 'lib/models/workbook_chart.rb', line 271 def worksheet return @worksheet end |
#worksheet=(value) ⇒ Object
Sets the worksheet property value. The worksheet containing the current chart. Read-only.
279 280 281 |
# File 'lib/models/workbook_chart.rb', line 279 def worksheet=(value) @worksheet = value end |