Class: MicrosoftGraph::Models::WorkbookRangeBorder

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/workbook_range_border.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a workbook_range_border

Raises:

  • (StandardError)


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

#colorObject

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’).

Returns:

  • a string



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’).

Parameters:

  • value

    Value to set for the color property.

Returns:

  • a void



33
34
35
# File 'lib/models/workbook_range_border.rb', line 33

def color=(value)
    @color = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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_indexObject

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.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the sideIndex property.

Returns:

  • a void



89
90
91
# File 'lib/models/workbook_range_border.rb', line 89

def side_index=(value)
    @side_index = value
end

#styleObject

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.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the style property.

Returns:

  • a void



104
105
106
# File 'lib/models/workbook_range_border.rb', line 104

def style=(value)
    @style = value
end

#weightObject

Gets the weight property value. Specifies the weight of the border around a range. The possible values are: Hairline, Thin, Medium, Thick.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the weight property.

Returns:

  • a void



119
120
121
# File 'lib/models/workbook_range_border.rb', line 119

def weight=(value)
    @weight = value
end