Class: Google::Apis::AnalyticsV3::AccountRef
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsV3::AccountRef
- 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
-
#href ⇒ String
Link for this account.
-
#id ⇒ String
Account ID.
-
#kind ⇒ String
Analytics account reference.
-
#name ⇒ String
Account name.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AccountRef
constructor
A new instance of AccountRef.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#href ⇒ String
Link for this account.
Corresponds to the JSON property href
147 148 149 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 147 def href @href end |
#id ⇒ String
Account ID.
Corresponds to the JSON property id
152 153 154 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 152 def id @id end |
#kind ⇒ String
Analytics account reference.
Corresponds to the JSON property kind
157 158 159 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 157 def kind @kind end |
#name ⇒ String
Account name.
Corresponds to the JSON property name
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 |