Class: Google::Apis::YoutubeAnalyticsV1::GroupItem::Resource
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeAnalyticsV1::GroupItem::Resource
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/youtube_analytics_v1/classes.rb,
generated/google/apis/youtube_analytics_v1/representations.rb,
generated/google/apis/youtube_analytics_v1/representations.rb
Instance Attribute Summary collapse
-
#id ⇒ String
Corresponds to the JSON property
id
. -
#kind ⇒ String
Corresponds to the JSON property
kind
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Resource
constructor
A new instance of Resource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Resource
Returns a new instance of Resource
174 175 176 |
# File 'generated/google/apis/youtube_analytics_v1/classes.rb', line 174 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ String
Corresponds to the JSON property id
167 168 169 |
# File 'generated/google/apis/youtube_analytics_v1/classes.rb', line 167 def id @id end |
#kind ⇒ String
Corresponds to the JSON property kind
172 173 174 |
# File 'generated/google/apis/youtube_analytics_v1/classes.rb', line 172 def kind @kind end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
179 180 181 182 |
# File 'generated/google/apis/youtube_analytics_v1/classes.rb', line 179 def update!(**args) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) end |