Class: MicrosoftGraph::Models::WorkbookChartLegend
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/workbook_chart_legend.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 workbookChartLegend and sets the default values.
-
#overlay ⇒ Object
Gets the overlay property value.
-
#overlay=(value) ⇒ Object
Sets the overlay property value.
-
#position ⇒ Object
Gets the position property value.
-
#position=(value) ⇒ Object
Sets the position property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#visible ⇒ Object
Gets the visible property value.
-
#visible=(value) ⇒ Object
Sets the visible property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new workbookChartLegend and sets the default values.
25 26 27 |
# File 'lib/models/workbook_chart_legend.rb', line 25 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
33 34 35 36 |
# File 'lib/models/workbook_chart_legend.rb', line 33 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return WorkbookChartLegend.new end |
Instance Method Details
#format ⇒ Object
Gets the format property value. Represents the formatting of a chart legend, which includes fill and font formatting. Read-only.
41 42 43 |
# File 'lib/models/workbook_chart_legend.rb', line 41 def format return @format end |
#format=(value) ⇒ Object
Sets the format property value. Represents the formatting of a chart legend, which includes fill and font formatting. Read-only.
49 50 51 |
# File 'lib/models/workbook_chart_legend.rb', line 49 def format=(value) @format = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
56 57 58 59 60 61 62 63 |
# File 'lib/models/workbook_chart_legend.rb', line 56 def get_field_deserializers() return super.merge({ "format" => lambda {|n| @format = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::WorkbookChartLegendFormat.create_from_discriminator_value(pn) }) }, "overlay" => lambda {|n| = n.get_boolean_value() }, "position" => lambda {|n| @position = n.get_string_value() }, "visible" => lambda {|n| @visible = n.get_boolean_value() }, }) end |
#overlay ⇒ Object
Gets the overlay property value. Boolean value for whether the chart legend should overlap with the main body of the chart.
68 69 70 |
# File 'lib/models/workbook_chart_legend.rb', line 68 def return end |
#overlay=(value) ⇒ Object
Sets the overlay property value. Boolean value for whether the chart legend should overlap with the main body of the chart.
76 77 78 |
# File 'lib/models/workbook_chart_legend.rb', line 76 def (value) = value end |
#position ⇒ Object
Gets the position property value. Represents the position of the legend on the chart. The possible values are: Top, Bottom, Left, Right, Corner, Custom.
83 84 85 |
# File 'lib/models/workbook_chart_legend.rb', line 83 def position return @position end |
#position=(value) ⇒ Object
Sets the position property value. Represents the position of the legend on the chart. The possible values are: Top, Bottom, Left, Right, Corner, Custom.
91 92 93 |
# File 'lib/models/workbook_chart_legend.rb', line 91 def position=(value) @position = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
99 100 101 102 103 104 105 106 |
# File 'lib/models/workbook_chart_legend.rb', line 99 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_object_value("format", @format) writer.write_boolean_value("overlay", ) writer.write_string_value("position", @position) writer.write_boolean_value("visible", @visible) end |
#visible ⇒ Object
Gets the visible property value. A boolean value the represents the visibility of a ChartLegend object.
111 112 113 |
# File 'lib/models/workbook_chart_legend.rb', line 111 def visible return @visible end |
#visible=(value) ⇒ Object
Sets the visible property value. A boolean value the represents the visibility of a ChartLegend object.
119 120 121 |
# File 'lib/models/workbook_chart_legend.rb', line 119 def visible=(value) @visible = value end |