Class: MicrosoftGraph::Models::UserExperienceAnalyticsMetric
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/user_experience_analytics_metric.rb
Overview
The user experience analytics metric contains the score and units of a metric of a user experience anlaytics 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 userExperienceAnalyticsMetric and sets the default values.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#unit ⇒ Object
Gets the unit property value.
-
#unit=(value) ⇒ Object
Sets the unit property value.
-
#value ⇒ Object
Gets the value property value.
-
#value=(value) ⇒ Object
Sets the value property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new userExperienceAnalyticsMetric and sets the default values.
21 22 23 |
# File 'lib/models/user_experience_analytics_metric.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_metric.rb', line 29 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return UserExperienceAnalyticsMetric.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_metric.rb', line 37 def get_field_deserializers() return super.merge({ "unit" => lambda {|n| @unit = n.get_string_value() }, "value" => lambda {|n| @value = n.get_object_value(lambda {|pn| Double.create_from_discriminator_value(pn) }) }, }) end |
#serialize(writer) ⇒ Object
Serializes information the current object
48 49 50 51 52 53 |
# File 'lib/models/user_experience_analytics_metric.rb', line 48 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("unit", @unit) writer.write_object_value("value", @value) end |
#unit ⇒ Object
Gets the unit property value. The unit of the user experience analytics metric. Examples: none, percentage, count, seconds, score.
58 59 60 |
# File 'lib/models/user_experience_analytics_metric.rb', line 58 def unit return @unit end |
#unit=(value) ⇒ Object
Sets the unit property value. The unit of the user experience analytics metric. Examples: none, percentage, count, seconds, score.
66 67 68 |
# File 'lib/models/user_experience_analytics_metric.rb', line 66 def unit=(value) @unit = value end |
#value ⇒ Object
Gets the value property value. The value of the user experience analytics metric.
73 74 75 |
# File 'lib/models/user_experience_analytics_metric.rb', line 73 def value return @value end |
#value=(value) ⇒ Object
Sets the value property value. The value of the user experience analytics metric.
81 82 83 |
# File 'lib/models/user_experience_analytics_metric.rb', line 81 def value=(value) @value = value end |