Class: Google::Apis::AnalyticsdataV1beta::ComparisonMetadata

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/analyticsdata_v1beta/classes.rb,
lib/google/apis/analyticsdata_v1beta/representations.rb,
lib/google/apis/analyticsdata_v1beta/representations.rb

Overview

The metadata for a single comparison.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ComparisonMetadata

Returns a new instance of ComparisonMetadata.



573
574
575
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 573

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#api_nameString

This comparison's resource name. Useable in Comparison's comparison field. For example, 'comparisons/1234'. Corresponds to the JSON property apiName

Returns:

  • (String)


561
562
563
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 561

def api_name
  @api_name
end

#descriptionString

This comparison's description. Corresponds to the JSON property description

Returns:

  • (String)


566
567
568
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 566

def description
  @description
end

#ui_nameString

This comparison's name within the Google Analytics user interface. Corresponds to the JSON property uiName

Returns:

  • (String)


571
572
573
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 571

def ui_name
  @ui_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



578
579
580
581
582
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 578

def update!(**args)
  @api_name = args[:api_name] if args.key?(:api_name)
  @description = args[:description] if args.key?(:description)
  @ui_name = args[:ui_name] if args.key?(:ui_name)
end