Class: Google::Apis::AnalyticsV3::FilterRef

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

Overview

JSON template for a profile filter link.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ FilterRef

Returns a new instance of FilterRef



2537
2538
2539
# File 'generated/google/apis/analytics_v3/classes.rb', line 2537

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

Instance Attribute Details

#account_idString

Account ID to which this filter belongs. Corresponds to the JSON property accountId

Returns:

  • (String)


2515
2516
2517
# File 'generated/google/apis/analytics_v3/classes.rb', line 2515

def 
  @account_id
end

#hrefString

Link for this filter. Corresponds to the JSON property href

Returns:

  • (String)


2520
2521
2522
# File 'generated/google/apis/analytics_v3/classes.rb', line 2520

def href
  @href
end

#idString

Filter ID. Corresponds to the JSON property id

Returns:

  • (String)


2525
2526
2527
# File 'generated/google/apis/analytics_v3/classes.rb', line 2525

def id
  @id
end

#kindString

Kind value for filter reference. Corresponds to the JSON property kind

Returns:

  • (String)


2530
2531
2532
# File 'generated/google/apis/analytics_v3/classes.rb', line 2530

def kind
  @kind
end

#nameString

Name of this filter. Corresponds to the JSON property name

Returns:

  • (String)


2535
2536
2537
# File 'generated/google/apis/analytics_v3/classes.rb', line 2535

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2542
2543
2544
2545
2546
2547
2548
# File 'generated/google/apis/analytics_v3/classes.rb', line 2542

def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @href = args[:href] if args.key?(:href)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
end