Class: MicrosoftGraph::Models::WorkbookWorksheet
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/workbook_worksheet.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
-
#charts ⇒ Object
Gets the charts property value.
-
#charts=(value) ⇒ Object
Sets the charts property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new workbookWorksheet and sets the default values.
-
#name ⇒ Object
Gets the name property value.
-
#name=(value) ⇒ Object
Sets the name property value.
-
#names ⇒ Object
Gets the names property value.
-
#names=(value) ⇒ Object
Sets the names property value.
-
#pivot_tables ⇒ Object
Gets the pivotTables property value.
-
#pivot_tables=(value) ⇒ Object
Sets the pivotTables property value.
-
#position ⇒ Object
Gets the position property value.
-
#position=(value) ⇒ Object
Sets the position property value.
-
#protection ⇒ Object
Gets the protection property value.
-
#protection=(value) ⇒ Object
Sets the protection property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#tables ⇒ Object
Gets the tables property value.
-
#tables=(value) ⇒ Object
Sets the tables property value.
-
#visibility ⇒ Object
Gets the visibility property value.
-
#visibility=(value) ⇒ Object
Sets the visibility property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new workbookWorksheet and sets the default values.
52 53 54 |
# File 'lib/models/workbook_worksheet.rb', line 52 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
60 61 62 63 |
# File 'lib/models/workbook_worksheet.rb', line 60 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return WorkbookWorksheet.new end |
Instance Method Details
#charts ⇒ Object
Gets the charts property value. Returns collection of charts that are part of the worksheet. Read-only.
37 38 39 |
# File 'lib/models/workbook_worksheet.rb', line 37 def charts return @charts end |
#charts=(value) ⇒ Object
Sets the charts property value. Returns collection of charts that are part of the worksheet. Read-only.
45 46 47 |
# File 'lib/models/workbook_worksheet.rb', line 45 def charts=(value) @charts = 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_worksheet.rb', line 68 def get_field_deserializers() return super.merge({ "charts" => lambda {|n| @charts = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::WorkbookChart.create_from_discriminator_value(pn) }) }, "name" => lambda {|n| @name = n.get_string_value() }, "names" => lambda {|n| @names = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::WorkbookNamedItem.create_from_discriminator_value(pn) }) }, "pivotTables" => lambda {|n| @pivot_tables = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::WorkbookPivotTable.create_from_discriminator_value(pn) }) }, "position" => lambda {|n| @position = n.get_number_value() }, "protection" => lambda {|n| @protection = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::WorkbookWorksheetProtection.create_from_discriminator_value(pn) }) }, "tables" => lambda {|n| @tables = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::WorkbookTable.create_from_discriminator_value(pn) }) }, "visibility" => lambda {|n| @visibility = n.get_string_value() }, }) end |
#name ⇒ Object
Gets the name property value. The display name of the worksheet.
84 85 86 |
# File 'lib/models/workbook_worksheet.rb', line 84 def name return @name end |
#name=(value) ⇒ Object
Sets the name property value. The display name of the worksheet.
92 93 94 |
# File 'lib/models/workbook_worksheet.rb', line 92 def name=(value) @name = value end |
#names ⇒ Object
Gets the names property value. Returns collection of names that are associated with the worksheet. Read-only.
99 100 101 |
# File 'lib/models/workbook_worksheet.rb', line 99 def names return @names end |
#names=(value) ⇒ Object
Sets the names property value. Returns collection of names that are associated with the worksheet. Read-only.
107 108 109 |
# File 'lib/models/workbook_worksheet.rb', line 107 def names=(value) @names = value end |
#pivot_tables ⇒ Object
Gets the pivotTables property value. Collection of PivotTables that are part of the worksheet.
114 115 116 |
# File 'lib/models/workbook_worksheet.rb', line 114 def pivot_tables return @pivot_tables end |
#pivot_tables=(value) ⇒ Object
Sets the pivotTables property value. Collection of PivotTables that are part of the worksheet.
122 123 124 |
# File 'lib/models/workbook_worksheet.rb', line 122 def pivot_tables=(value) @pivot_tables = value end |
#position ⇒ Object
Gets the position property value. The zero-based position of the worksheet within the workbook.
129 130 131 |
# File 'lib/models/workbook_worksheet.rb', line 129 def position return @position end |
#position=(value) ⇒ Object
Sets the position property value. The zero-based position of the worksheet within the workbook.
137 138 139 |
# File 'lib/models/workbook_worksheet.rb', line 137 def position=(value) @position = value end |
#protection ⇒ Object
Gets the protection property value. Returns sheet protection object for a worksheet. Read-only.
144 145 146 |
# File 'lib/models/workbook_worksheet.rb', line 144 def protection return @protection end |
#protection=(value) ⇒ Object
Sets the protection property value. Returns sheet protection object for a worksheet. Read-only.
152 153 154 |
# File 'lib/models/workbook_worksheet.rb', line 152 def protection=(value) @protection = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
160 161 162 163 164 165 166 167 168 169 170 171 |
# File 'lib/models/workbook_worksheet.rb', line 160 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_collection_of_object_values("charts", @charts) writer.write_string_value("name", @name) writer.write_collection_of_object_values("names", @names) writer.write_collection_of_object_values("pivotTables", @pivot_tables) writer.write_number_value("position", @position) writer.write_object_value("protection", @protection) writer.write_collection_of_object_values("tables", @tables) writer.write_string_value("visibility", @visibility) end |
#tables ⇒ Object
Gets the tables property value. Collection of tables that are part of the worksheet. Read-only.
176 177 178 |
# File 'lib/models/workbook_worksheet.rb', line 176 def tables return @tables end |
#tables=(value) ⇒ Object
Sets the tables property value. Collection of tables that are part of the worksheet. Read-only.
184 185 186 |
# File 'lib/models/workbook_worksheet.rb', line 184 def tables=(value) @tables = value end |
#visibility ⇒ Object
Gets the visibility property value. The Visibility of the worksheet. The possible values are: Visible, Hidden, VeryHidden.
191 192 193 |
# File 'lib/models/workbook_worksheet.rb', line 191 def visibility return @visibility end |
#visibility=(value) ⇒ Object
Sets the visibility property value. The Visibility of the worksheet. The possible values are: Visible, Hidden, VeryHidden.
199 200 201 |
# File 'lib/models/workbook_worksheet.rb', line 199 def visibility=(value) @visibility = value end |