Class: MicrosoftGraph::Models::MobileAppCategory
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/mobile_app_category.rb
Overview
Contains properties for a single Intune app category.
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
-
#display_name ⇒ Object
Gets the displayName property value.
-
#display_name=(value) ⇒ Object
Sets the displayName property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new mobileAppCategory and sets the default values.
-
#last_modified_date_time ⇒ Object
Gets the lastModifiedDateTime property value.
-
#last_modified_date_time=(value) ⇒ Object
Sets the lastModifiedDateTime property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new mobileAppCategory and sets the default values.
22 23 24 |
# File 'lib/models/mobile_app_category.rb', line 22 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
30 31 32 33 |
# File 'lib/models/mobile_app_category.rb', line 30 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return MobileAppCategory.new end |
Instance Method Details
#display_name ⇒ Object
Gets the displayName property value. The name of the app category.
38 39 40 |
# File 'lib/models/mobile_app_category.rb', line 38 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. The name of the app category.
46 47 48 |
# File 'lib/models/mobile_app_category.rb', line 46 def display_name=(value) @display_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
53 54 55 56 57 58 |
# File 'lib/models/mobile_app_category.rb', line 53 def get_field_deserializers() return super.merge({ "displayName" => lambda {|n| @display_name = n.get_string_value() }, "lastModifiedDateTime" => lambda {|n| @last_modified_date_time = n.get_date_time_value() }, }) end |
#last_modified_date_time ⇒ Object
Gets the lastModifiedDateTime property value. The date and time the mobileAppCategory was last modified.
63 64 65 |
# File 'lib/models/mobile_app_category.rb', line 63 def last_modified_date_time return @last_modified_date_time end |
#last_modified_date_time=(value) ⇒ Object
Sets the lastModifiedDateTime property value. The date and time the mobileAppCategory was last modified.
71 72 73 |
# File 'lib/models/mobile_app_category.rb', line 71 def last_modified_date_time=(value) @last_modified_date_time = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
79 80 81 82 83 84 |
# File 'lib/models/mobile_app_category.rb', line 79 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("displayName", @display_name) writer.write_date_time_value("lastModifiedDateTime", @last_modified_date_time) end |