Class: MicrosoftGraph::Models::WorkbookRangeBorder
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/workbook_range_border.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
-
#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 workbookRangeBorder and sets the default values.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#side_index ⇒ Object
Gets the sideIndex property value.
-
#side_index=(value) ⇒ Object
Sets the sideIndex property value.
-
#style ⇒ Object
Gets the style property value.
-
#style=(value) ⇒ Object
Sets the style property value.
-
#weight ⇒ Object
Gets the weight property value.
-
#weight=(value) ⇒ Object
Sets the weight property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new workbookRangeBorder and sets the default values.
40 41 42 |
# File 'lib/models/workbook_range_border.rb', line 40 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
48 49 50 51 |
# File 'lib/models/workbook_range_border.rb', line 48 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return WorkbookRangeBorder.new end |
Instance Method Details
#color ⇒ Object
Gets the color property value. HTML color code representing the color of the border line, of the form #RRGGBB (e.g. ‘FFA500’) or as a named HTML color (e.g. ‘orange’).
25 26 27 |
# File 'lib/models/workbook_range_border.rb', line 25 def color return @color end |
#color=(value) ⇒ Object
Sets the color property value. HTML color code representing the color of the border line, of the form #RRGGBB (e.g. ‘FFA500’) or as a named HTML color (e.g. ‘orange’).
33 34 35 |
# File 'lib/models/workbook_range_border.rb', line 33 def color=(value) @color = 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_range_border.rb', line 56 def get_field_deserializers() return super.merge({ "color" => lambda {|n| @color = n.get_string_value() }, "sideIndex" => lambda {|n| @side_index = n.get_string_value() }, "style" => lambda {|n| @style = n.get_string_value() }, "weight" => lambda {|n| @weight = n.get_string_value() }, }) end |
#serialize(writer) ⇒ Object
Serializes information the current object
69 70 71 72 73 74 75 76 |
# File 'lib/models/workbook_range_border.rb', line 69 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("color", @color) writer.write_string_value("sideIndex", @side_index) writer.write_string_value("style", @style) writer.write_string_value("weight", @weight) end |
#side_index ⇒ Object
Gets the sideIndex property value. Constant value that indicates the specific side of the border. The possible values are: EdgeTop, EdgeBottom, EdgeLeft, EdgeRight, InsideVertical, InsideHorizontal, DiagonalDown, DiagonalUp. Read-only.
81 82 83 |
# File 'lib/models/workbook_range_border.rb', line 81 def side_index return @side_index end |
#side_index=(value) ⇒ Object
Sets the sideIndex property value. Constant value that indicates the specific side of the border. The possible values are: EdgeTop, EdgeBottom, EdgeLeft, EdgeRight, InsideVertical, InsideHorizontal, DiagonalDown, DiagonalUp. Read-only.
89 90 91 |
# File 'lib/models/workbook_range_border.rb', line 89 def side_index=(value) @side_index = value end |
#style ⇒ Object
Gets the style property value. One of the constants of line style specifying the line style for the border. The possible values are: None, Continuous, Dash, DashDot, DashDotDot, Dot, Double, SlantDashDot.
96 97 98 |
# File 'lib/models/workbook_range_border.rb', line 96 def style return @style end |
#style=(value) ⇒ Object
Sets the style property value. One of the constants of line style specifying the line style for the border. The possible values are: None, Continuous, Dash, DashDot, DashDotDot, Dot, Double, SlantDashDot.
104 105 106 |
# File 'lib/models/workbook_range_border.rb', line 104 def style=(value) @style = value end |
#weight ⇒ Object
Gets the weight property value. Specifies the weight of the border around a range. The possible values are: Hairline, Thin, Medium, Thick.
111 112 113 |
# File 'lib/models/workbook_range_border.rb', line 111 def weight return @weight end |
#weight=(value) ⇒ Object
Sets the weight property value. Specifies the weight of the border around a range. The possible values are: Hairline, Thin, Medium, Thick.
119 120 121 |
# File 'lib/models/workbook_range_border.rb', line 119 def weight=(value) @weight = value end |