Class: MicrosoftGraph::Models::WorkbookChartAxisTitle
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/workbook_chart_axis_title.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 workbookChartAxisTitle and sets the default values.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#text ⇒ Object
Gets the text property value.
-
#text=(value) ⇒ Object
Sets the text property value.
-
#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 workbookChartAxisTitle and sets the default values.
22 23 24 |
# File 'lib/models/workbook_chart_axis_title.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_axis_title.rb', line 30 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return WorkbookChartAxisTitle.new end |
Instance Method Details
#format ⇒ Object
Gets the format property value. Represents the formatting of chart axis title. Read-only.
38 39 40 |
# File 'lib/models/workbook_chart_axis_title.rb', line 38 def format return @format end |
#format=(value) ⇒ Object
Sets the format property value. Represents the formatting of chart axis title. Read-only.
46 47 48 |
# File 'lib/models/workbook_chart_axis_title.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_axis_title.rb', line 53 def get_field_deserializers() return super.merge({ "format" => lambda {|n| @format = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::WorkbookChartAxisTitleFormat.create_from_discriminator_value(pn) }) }, "text" => lambda {|n| @text = n.get_string_value() }, "visible" => lambda {|n| @visible = n.get_boolean_value() }, }) end |
#serialize(writer) ⇒ Object
Serializes information the current object
65 66 67 68 69 70 71 |
# File 'lib/models/workbook_chart_axis_title.rb', line 65 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_object_value("format", @format) writer.write_string_value("text", @text) writer.write_boolean_value("visible", @visible) end |
#text ⇒ Object
Gets the text property value. Represents the axis title.
76 77 78 |
# File 'lib/models/workbook_chart_axis_title.rb', line 76 def text return @text end |
#text=(value) ⇒ Object
Sets the text property value. Represents the axis title.
84 85 86 |
# File 'lib/models/workbook_chart_axis_title.rb', line 84 def text=(value) @text = value end |
#visible ⇒ Object
Gets the visible property value. A boolean that specifies the visibility of an axis title.
91 92 93 |
# File 'lib/models/workbook_chart_axis_title.rb', line 91 def visible return @visible end |
#visible=(value) ⇒ Object
Sets the visible property value. A boolean that specifies the visibility of an axis title.
99 100 101 |
# File 'lib/models/workbook_chart_axis_title.rb', line 99 def visible=(value) @visible = value end |