Class: MicrosoftGraph::Models::WorkbookChartAxis
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/workbook_chart_axis.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 workbookChartAxis and sets the default values.
-
#major_gridlines ⇒ Object
Gets the majorGridlines property value.
-
#major_gridlines=(value) ⇒ Object
Sets the majorGridlines property value.
-
#major_unit ⇒ Object
Gets the majorUnit property value.
-
#major_unit=(value) ⇒ Object
Sets the majorUnit property value.
-
#maximum ⇒ Object
Gets the maximum property value.
-
#maximum=(value) ⇒ Object
Sets the maximum property value.
-
#minimum ⇒ Object
Gets the minimum property value.
-
#minimum=(value) ⇒ Object
Sets the minimum property value.
-
#minor_gridlines ⇒ Object
Gets the minorGridlines property value.
-
#minor_gridlines=(value) ⇒ Object
Sets the minorGridlines property value.
-
#minor_unit ⇒ Object
Gets the minorUnit property value.
-
#minor_unit=(value) ⇒ Object
Sets the minorUnit property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#title ⇒ Object
Gets the title property value.
-
#title=(value) ⇒ Object
Sets the title property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new workbookChartAxis and sets the default values.
37 38 39 |
# File 'lib/models/workbook_chart_axis.rb', line 37 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
45 46 47 48 |
# File 'lib/models/workbook_chart_axis.rb', line 45 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return WorkbookChartAxis.new end |
Instance Method Details
#format ⇒ Object
Gets the format property value. Represents the formatting of a chart object, which includes line and font formatting. Read-only.
53 54 55 |
# File 'lib/models/workbook_chart_axis.rb', line 53 def format return @format end |
#format=(value) ⇒ Object
Sets the format property value. Represents the formatting of a chart object, which includes line and font formatting. Read-only.
61 62 63 |
# File 'lib/models/workbook_chart_axis.rb', line 61 def format=(value) @format = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
68 69 70 71 72 73 74 75 76 77 78 79 |
# File 'lib/models/workbook_chart_axis.rb', line 68 def get_field_deserializers() return super.merge({ "format" => lambda {|n| @format = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::WorkbookChartAxisFormat.create_from_discriminator_value(pn) }) }, "majorGridlines" => lambda {|n| @major_gridlines = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::WorkbookChartGridlines.create_from_discriminator_value(pn) }) }, "majorUnit" => lambda {|n| @major_unit = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, "maximum" => lambda {|n| @maximum = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, "minimum" => lambda {|n| @minimum = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, "minorGridlines" => lambda {|n| @minor_gridlines = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::WorkbookChartGridlines.create_from_discriminator_value(pn) }) }, "minorUnit" => lambda {|n| @minor_unit = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, "title" => lambda {|n| @title = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::WorkbookChartAxisTitle.create_from_discriminator_value(pn) }) }, }) end |
#major_gridlines ⇒ Object
Gets the majorGridlines property value. Returns a gridlines object that represents the major gridlines for the specified axis. Read-only.
84 85 86 |
# File 'lib/models/workbook_chart_axis.rb', line 84 def major_gridlines return @major_gridlines end |
#major_gridlines=(value) ⇒ Object
Sets the majorGridlines property value. Returns a gridlines object that represents the major gridlines for the specified axis. Read-only.
92 93 94 |
# File 'lib/models/workbook_chart_axis.rb', line 92 def major_gridlines=(value) @major_gridlines = value end |
#major_unit ⇒ Object
Gets the majorUnit property value. Represents the interval between two major tick marks. Can be set to a numeric value or an empty string. The returned value is always a number.
99 100 101 |
# File 'lib/models/workbook_chart_axis.rb', line 99 def major_unit return @major_unit end |
#major_unit=(value) ⇒ Object
Sets the majorUnit property value. Represents the interval between two major tick marks. Can be set to a numeric value or an empty string. The returned value is always a number.
107 108 109 |
# File 'lib/models/workbook_chart_axis.rb', line 107 def major_unit=(value) @major_unit = value end |
#maximum ⇒ Object
Gets the maximum property value. Represents the maximum value on the value axis. Can be set to a numeric value or an empty string (for automatic axis values). The returned value is always a number.
114 115 116 |
# File 'lib/models/workbook_chart_axis.rb', line 114 def maximum return @maximum end |
#maximum=(value) ⇒ Object
Sets the maximum property value. Represents the maximum value on the value axis. Can be set to a numeric value or an empty string (for automatic axis values). The returned value is always a number.
122 123 124 |
# File 'lib/models/workbook_chart_axis.rb', line 122 def maximum=(value) @maximum = value end |
#minimum ⇒ Object
Gets the minimum property value. Represents the minimum value on the value axis. Can be set to a numeric value or an empty string (for automatic axis values). The returned value is always a number.
129 130 131 |
# File 'lib/models/workbook_chart_axis.rb', line 129 def minimum return @minimum end |
#minimum=(value) ⇒ Object
Sets the minimum property value. Represents the minimum value on the value axis. Can be set to a numeric value or an empty string (for automatic axis values). The returned value is always a number.
137 138 139 |
# File 'lib/models/workbook_chart_axis.rb', line 137 def minimum=(value) @minimum = value end |
#minor_gridlines ⇒ Object
Gets the minorGridlines property value. Returns a Gridlines object that represents the minor gridlines for the specified axis. Read-only.
144 145 146 |
# File 'lib/models/workbook_chart_axis.rb', line 144 def minor_gridlines return @minor_gridlines end |
#minor_gridlines=(value) ⇒ Object
Sets the minorGridlines property value. Returns a Gridlines object that represents the minor gridlines for the specified axis. Read-only.
152 153 154 |
# File 'lib/models/workbook_chart_axis.rb', line 152 def minor_gridlines=(value) @minor_gridlines = value end |
#minor_unit ⇒ Object
Gets the minorUnit property value. Represents the interval between two minor tick marks. ‘Can be set to a numeric value or an empty string (for automatic axis values). The returned value is always a number.
159 160 161 |
# File 'lib/models/workbook_chart_axis.rb', line 159 def minor_unit return @minor_unit end |
#minor_unit=(value) ⇒ Object
Sets the minorUnit property value. Represents the interval between two minor tick marks. ‘Can be set to a numeric value or an empty string (for automatic axis values). The returned value is always a number.
167 168 169 |
# File 'lib/models/workbook_chart_axis.rb', line 167 def minor_unit=(value) @minor_unit = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
175 176 177 178 179 180 181 182 183 184 185 186 |
# File 'lib/models/workbook_chart_axis.rb', line 175 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_object_value("format", @format) writer.write_object_value("majorGridlines", @major_gridlines) writer.write_object_value("majorUnit", @major_unit) writer.write_object_value("maximum", @maximum) writer.write_object_value("minimum", @minimum) writer.write_object_value("minorGridlines", @minor_gridlines) writer.write_object_value("minorUnit", @minor_unit) writer.write_object_value("title", @title) end |
#title ⇒ Object
Gets the title property value. Represents the axis title. Read-only.
191 192 193 |
# File 'lib/models/workbook_chart_axis.rb', line 191 def title return @title end |
#title=(value) ⇒ Object
Sets the title property value. Represents the axis title. Read-only.
199 200 201 |
# File 'lib/models/workbook_chart_axis.rb', line 199 def title=(value) @title = value end |