Class: MicrosoftGraph::Models::IosHomeScreenFolder
- Inherits:
-
IosHomeScreenItem
- Object
- IosHomeScreenItem
- MicrosoftGraph::Models::IosHomeScreenFolder
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/ios_home_screen_folder.rb
Overview
A folder containing pages of apps and web clips on the Home Screen.
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
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new iosHomeScreenFolder and sets the default values.
-
#pages ⇒ Object
Gets the pages property value.
-
#pages=(value) ⇒ Object
Sets the pages property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from IosHomeScreenItem
#additional_data, #additional_data=, #display_name, #display_name=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new iosHomeScreenFolder and sets the default values.
18 19 20 21 |
# File 'lib/models/ios_home_screen_folder.rb', line 18 def initialize() super @odata_type = "#microsoft.graph.iosHomeScreenFolder" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
27 28 29 30 |
# File 'lib/models/ios_home_screen_folder.rb', line 27 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return IosHomeScreenFolder.new end |
Instance Method Details
#get_field_deserializers ⇒ Object
The deserialization information for the current model
35 36 37 38 39 |
# File 'lib/models/ios_home_screen_folder.rb', line 35 def get_field_deserializers() return super.merge({ "pages" => lambda {|n| @pages = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::IosHomeScreenFolderPage.create_from_discriminator_value(pn) }) }, }) end |
#pages ⇒ Object
Gets the pages property value. Pages of Home Screen Layout Icons which must be applications or web clips. This collection can contain a maximum of 500 elements.
44 45 46 |
# File 'lib/models/ios_home_screen_folder.rb', line 44 def pages return @pages end |
#pages=(value) ⇒ Object
Sets the pages property value. Pages of Home Screen Layout Icons which must be applications or web clips. This collection can contain a maximum of 500 elements.
52 53 54 |
# File 'lib/models/ios_home_screen_folder.rb', line 52 def pages=(value) @pages = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
60 61 62 63 64 |
# File 'lib/models/ios_home_screen_folder.rb', line 60 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_collection_of_object_values("pages", @pages) end |