Class: MicrosoftGraph::Models::UserExperienceAnalyticsCategory
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/user_experience_analytics_category.rb
Overview
The user experience analytics category entity contains the scores and insights for the various metrics of a 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
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new userExperienceAnalyticsCategory and sets the default values.
-
#insights ⇒ Object
Gets the insights property value.
-
#insights=(value) ⇒ Object
Sets the insights property value.
-
#metric_values ⇒ Object
Gets the metricValues property value.
-
#metric_values=(value) ⇒ Object
Sets the metricValues 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 userExperienceAnalyticsCategory and sets the default values.
21 22 23 |
# File 'lib/models/user_experience_analytics_category.rb', line 21 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
29 30 31 32 |
# File 'lib/models/user_experience_analytics_category.rb', line 29 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return UserExperienceAnalyticsCategory.new end |
Instance Method Details
#get_field_deserializers ⇒ Object
The deserialization information for the current model
37 38 39 40 41 42 |
# File 'lib/models/user_experience_analytics_category.rb', line 37 def get_field_deserializers() return super.merge({ "insights" => lambda {|n| @insights = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsInsight.create_from_discriminator_value(pn) }) }, "metricValues" => lambda {|n| @metric_values = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsMetric.create_from_discriminator_value(pn) }) }, }) end |
#insights ⇒ Object
Gets the insights property value. The insights for the category. Read-only.
47 48 49 |
# File 'lib/models/user_experience_analytics_category.rb', line 47 def insights return @insights end |
#insights=(value) ⇒ Object
Sets the insights property value. The insights for the category. Read-only.
55 56 57 |
# File 'lib/models/user_experience_analytics_category.rb', line 55 def insights=(value) @insights = value end |
#metric_values ⇒ Object
Gets the metricValues property value. The metric values for the user experience analytics category. Read-only.
62 63 64 |
# File 'lib/models/user_experience_analytics_category.rb', line 62 def metric_values return @metric_values end |
#metric_values=(value) ⇒ Object
Sets the metricValues property value. The metric values for the user experience analytics category. Read-only.
70 71 72 |
# File 'lib/models/user_experience_analytics_category.rb', line 70 def metric_values=(value) @metric_values = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
78 79 80 81 82 83 |
# File 'lib/models/user_experience_analytics_category.rb', line 78 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_collection_of_object_values("insights", @insights) writer.write_collection_of_object_values("metricValues", @metric_values) end |