Class: MicrosoftGraph::Models::Workbook
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/workbook.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
-
#application ⇒ Object
Gets the application property value.
-
#application=(value) ⇒ Object
Sets the application property value.
-
#comments ⇒ Object
Gets the comments property value.
-
#comments=(value) ⇒ Object
Sets the comments property value.
-
#functions ⇒ Object
Gets the functions property value.
-
#functions=(value) ⇒ Object
Sets the functions property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new workbook and sets the default values.
-
#names ⇒ Object
Gets the names property value.
-
#names=(value) ⇒ Object
Sets the names property value.
-
#operations ⇒ Object
Gets the operations property value.
-
#operations=(value) ⇒ Object
Sets the operations 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.
-
#worksheets ⇒ Object
Gets the worksheets property value.
-
#worksheets=(value) ⇒ Object
Sets the worksheets property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new workbook and sets the default values.
64 65 66 |
# File 'lib/models/workbook.rb', line 64 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
72 73 74 75 |
# File 'lib/models/workbook.rb', line 72 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return Workbook.new end |
Instance Method Details
#application ⇒ Object
Gets the application property value. The application property
34 35 36 |
# File 'lib/models/workbook.rb', line 34 def application return @application end |
#application=(value) ⇒ Object
Sets the application property value. The application property
42 43 44 |
# File 'lib/models/workbook.rb', line 42 def application=(value) @application = value end |
#comments ⇒ Object
Gets the comments property value. Represents a collection of comments in a workbook.
49 50 51 |
# File 'lib/models/workbook.rb', line 49 def comments return @comments end |
#comments=(value) ⇒ Object
Sets the comments property value. Represents a collection of comments in a workbook.
57 58 59 |
# File 'lib/models/workbook.rb', line 57 def comments=(value) @comments = value end |
#functions ⇒ Object
Gets the functions property value. The functions property
80 81 82 |
# File 'lib/models/workbook.rb', line 80 def functions return @functions end |
#functions=(value) ⇒ Object
Sets the functions property value. The functions property
88 89 90 |
# File 'lib/models/workbook.rb', line 88 def functions=(value) @functions = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/models/workbook.rb', line 95 def get_field_deserializers() return super.merge({ "application" => lambda {|n| @application = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::WorkbookApplication.create_from_discriminator_value(pn) }) }, "comments" => lambda {|n| @comments = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::WorkbookComment.create_from_discriminator_value(pn) }) }, "functions" => lambda {|n| @functions = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::WorkbookFunctions.create_from_discriminator_value(pn) }) }, "names" => lambda {|n| @names = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::WorkbookNamedItem.create_from_discriminator_value(pn) }) }, "operations" => lambda {|n| @operations = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::WorkbookOperation.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) }) }, "worksheets" => lambda {|n| @worksheets = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::WorkbookWorksheet.create_from_discriminator_value(pn) }) }, }) end |
#names ⇒ Object
Gets the names property value. Represents a collection of workbooks scoped named items (named ranges and constants). Read-only.
110 111 112 |
# File 'lib/models/workbook.rb', line 110 def names return @names end |
#names=(value) ⇒ Object
Sets the names property value. Represents a collection of workbooks scoped named items (named ranges and constants). Read-only.
118 119 120 |
# File 'lib/models/workbook.rb', line 118 def names=(value) @names = value end |
#operations ⇒ Object
Gets the operations property value. The status of workbook operations. Getting an operation collection is not supported, but you can get the status of a long-running operation if the Location header is returned in the response. Read-only.
125 126 127 |
# File 'lib/models/workbook.rb', line 125 def operations return @operations end |
#operations=(value) ⇒ Object
Sets the operations property value. The status of workbook operations. Getting an operation collection is not supported, but you can get the status of a long-running operation if the Location header is returned in the response. Read-only.
133 134 135 |
# File 'lib/models/workbook.rb', line 133 def operations=(value) @operations = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
141 142 143 144 145 146 147 148 149 150 151 |
# File 'lib/models/workbook.rb', line 141 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_object_value("application", @application) writer.write_collection_of_object_values("comments", @comments) writer.write_object_value("functions", @functions) writer.write_collection_of_object_values("names", @names) writer.write_collection_of_object_values("operations", @operations) writer.write_collection_of_object_values("tables", @tables) writer.write_collection_of_object_values("worksheets", @worksheets) end |
#tables ⇒ Object
Gets the tables property value. Represents a collection of tables associated with the workbook. Read-only.
156 157 158 |
# File 'lib/models/workbook.rb', line 156 def tables return @tables end |
#tables=(value) ⇒ Object
Sets the tables property value. Represents a collection of tables associated with the workbook. Read-only.
164 165 166 |
# File 'lib/models/workbook.rb', line 164 def tables=(value) @tables = value end |
#worksheets ⇒ Object
Gets the worksheets property value. Represents a collection of worksheets associated with the workbook. Read-only.
171 172 173 |
# File 'lib/models/workbook.rb', line 171 def worksheets return @worksheets end |
#worksheets=(value) ⇒ Object
Sets the worksheets property value. Represents a collection of worksheets associated with the workbook. Read-only.
179 180 181 |
# File 'lib/models/workbook.rb', line 179 def worksheets=(value) @worksheets = value end |