Class: Google::Apis::AnalyticsV3::AccountRef

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 linked account.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AccountRef

Returns a new instance of AccountRef.



164
165
166
# File 'generated/google/apis/analytics_v3/classes.rb', line 164

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

Instance Attribute Details

#hrefString

Link for this account. Corresponds to the JSON property href

Returns:

  • (String)


147
148
149
# File 'generated/google/apis/analytics_v3/classes.rb', line 147

def href
  @href
end

#idString

Account ID. Corresponds to the JSON property id

Returns:

  • (String)


152
153
154
# File 'generated/google/apis/analytics_v3/classes.rb', line 152

def id
  @id
end

#kindString

Analytics account reference. Corresponds to the JSON property kind

Returns:

  • (String)


157
158
159
# File 'generated/google/apis/analytics_v3/classes.rb', line 157

def kind
  @kind
end

#nameString

Account name. Corresponds to the JSON property name

Returns:

  • (String)


162
163
164
# File 'generated/google/apis/analytics_v3/classes.rb', line 162

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



169
170
171
172
173
174
# File 'generated/google/apis/analytics_v3/classes.rb', line 169

def update!(**args)
  @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