Class: MicrosoftGraph::Models::WorkbookChartFont
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/workbook_chart_font.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
-
#bold ⇒ Object
Gets the bold property value.
-
#bold=(value) ⇒ Object
Sets the bold property value.
-
#color ⇒ Object
Gets the color property value.
-
#color=(value) ⇒ Object
Sets the color property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new workbookChartFont and sets the default values.
-
#italic ⇒ Object
Gets the italic property value.
-
#italic=(value) ⇒ Object
Sets the italic 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.
-
#size ⇒ Object
Gets the size property value.
-
#size=(value) ⇒ Object
Sets the size property value.
-
#underline ⇒ Object
Gets the underline property value.
-
#underline=(value) ⇒ Object
Sets the underline property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new workbookChartFont and sets the default values.
61 62 63 |
# File 'lib/models/workbook_chart_font.rb', line 61 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
69 70 71 72 |
# File 'lib/models/workbook_chart_font.rb', line 69 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return WorkbookChartFont.new end |
Instance Method Details
#bold ⇒ Object
Gets the bold property value. Represents the bold status of font.
31 32 33 |
# File 'lib/models/workbook_chart_font.rb', line 31 def bold return @bold end |
#bold=(value) ⇒ Object
Sets the bold property value. Represents the bold status of font.
39 40 41 |
# File 'lib/models/workbook_chart_font.rb', line 39 def bold=(value) @bold = value end |
#color ⇒ Object
Gets the color property value. HTML color code representation of the text color. E.g. #FF0000 represents Red.
46 47 48 |
# File 'lib/models/workbook_chart_font.rb', line 46 def color return @color end |
#color=(value) ⇒ Object
Sets the color property value. HTML color code representation of the text color. E.g. #FF0000 represents Red.
54 55 56 |
# File 'lib/models/workbook_chart_font.rb', line 54 def color=(value) @color = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
77 78 79 80 81 82 83 84 85 86 |
# File 'lib/models/workbook_chart_font.rb', line 77 def get_field_deserializers() return super.merge({ "bold" => lambda {|n| @bold = n.get_boolean_value() }, "color" => lambda {|n| @color = n.get_string_value() }, "italic" => lambda {|n| @italic = n.get_boolean_value() }, "name" => lambda {|n| @name = n.get_string_value() }, "size" => lambda {|n| @size = n.get_object_value(lambda {|pn| Double.create_from_discriminator_value(pn) }) }, "underline" => lambda {|n| @underline = n.get_string_value() }, }) end |
#italic ⇒ Object
Gets the italic property value. Represents the italic status of the font.
91 92 93 |
# File 'lib/models/workbook_chart_font.rb', line 91 def italic return @italic end |
#italic=(value) ⇒ Object
Sets the italic property value. Represents the italic status of the font.
99 100 101 |
# File 'lib/models/workbook_chart_font.rb', line 99 def italic=(value) @italic = value end |
#name ⇒ Object
Gets the name property value. Font name (e.g. ‘Calibri’)
106 107 108 |
# File 'lib/models/workbook_chart_font.rb', line 106 def name return @name end |
#name=(value) ⇒ Object
Sets the name property value. Font name (e.g. ‘Calibri’)
114 115 116 |
# File 'lib/models/workbook_chart_font.rb', line 114 def name=(value) @name = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
122 123 124 125 126 127 128 129 130 131 |
# File 'lib/models/workbook_chart_font.rb', line 122 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_boolean_value("bold", @bold) writer.write_string_value("color", @color) writer.write_boolean_value("italic", @italic) writer.write_string_value("name", @name) writer.write_object_value("size", @size) writer.write_string_value("underline", @underline) end |
#size ⇒ Object
Gets the size property value. Size of the font (e.g. 11)
136 137 138 |
# File 'lib/models/workbook_chart_font.rb', line 136 def size return @size end |
#size=(value) ⇒ Object
Sets the size property value. Size of the font (e.g. 11)
144 145 146 |
# File 'lib/models/workbook_chart_font.rb', line 144 def size=(value) @size = value end |
#underline ⇒ Object
Gets the underline property value. Type of underline applied to the font. The possible values are: None, Single.
151 152 153 |
# File 'lib/models/workbook_chart_font.rb', line 151 def underline return @underline end |
#underline=(value) ⇒ Object
Sets the underline property value. Type of underline applied to the font. The possible values are: None, Single.
159 160 161 |
# File 'lib/models/workbook_chart_font.rb', line 159 def underline=(value) @underline = value end |