Class: MicrosoftGraph::Models::WorkbookChartSeries
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/workbook_chart_series.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
-
#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.
-
#initialize ⇒ Object
constructor
Instantiates a new workbookChartSeries and sets the default values.
-
#name ⇒ Object
Gets the name property value.
-
#name=(value) ⇒ Object
Sets the name property value.
-
#points ⇒ Object
Gets the points property value.
-
#points=(value) ⇒ Object
Sets the points property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new workbookChartSeries and sets the default values.
22 23 24 |
# File 'lib/models/workbook_chart_series.rb', line 22 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
30 31 32 33 |
# File 'lib/models/workbook_chart_series.rb', line 30 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return WorkbookChartSeries.new end |
Instance Method Details
#format ⇒ Object
Gets the format property value. Represents the formatting of a chart series, which includes fill and line formatting. Read-only.
38 39 40 |
# File 'lib/models/workbook_chart_series.rb', line 38 def format return @format end |
#format=(value) ⇒ Object
Sets the format property value. Represents the formatting of a chart series, which includes fill and line formatting. Read-only.
46 47 48 |
# File 'lib/models/workbook_chart_series.rb', line 46 def format=(value) @format = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
53 54 55 56 57 58 59 |
# File 'lib/models/workbook_chart_series.rb', line 53 def get_field_deserializers() return super.merge({ "format" => lambda {|n| @format = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::WorkbookChartSeriesFormat.create_from_discriminator_value(pn) }) }, "name" => lambda {|n| @name = n.get_string_value() }, "points" => lambda {|n| @points = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::WorkbookChartPoint.create_from_discriminator_value(pn) }) }, }) end |
#name ⇒ Object
Gets the name property value. Represents the name of a series in a chart.
64 65 66 |
# File 'lib/models/workbook_chart_series.rb', line 64 def name return @name end |
#name=(value) ⇒ Object
Sets the name property value. Represents the name of a series in a chart.
72 73 74 |
# File 'lib/models/workbook_chart_series.rb', line 72 def name=(value) @name = value end |
#points ⇒ Object
Gets the points property value. Represents a collection of all points in the series. Read-only.
79 80 81 |
# File 'lib/models/workbook_chart_series.rb', line 79 def points return @points end |
#points=(value) ⇒ Object
Sets the points property value. Represents a collection of all points in the series. Read-only.
87 88 89 |
# File 'lib/models/workbook_chart_series.rb', line 87 def points=(value) @points = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
95 96 97 98 99 100 101 |
# File 'lib/models/workbook_chart_series.rb', line 95 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_object_value("format", @format) writer.write_string_value("name", @name) writer.write_collection_of_object_values("points", @points) end |