Class: Google::Apis::DriveV3::AppIcons
- Inherits:
-
Object
- Object
- Google::Apis::DriveV3::AppIcons
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/drive_v3/classes.rb,
lib/google/apis/drive_v3/representations.rb,
lib/google/apis/drive_v3/representations.rb
Instance Attribute Summary collapse
-
#category ⇒ String
Category of the icon.
-
#icon_url ⇒ String
URL for the icon.
-
#size ⇒ Fixnum
Size of the icon.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AppIcons
constructor
A new instance of AppIcons.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AppIcons
Returns a new instance of AppIcons.
426 427 428 |
# File 'lib/google/apis/drive_v3/classes.rb', line 426 def initialize(**args) update!(**args) end |
Instance Attribute Details
#category ⇒ String
Category of the icon. Allowed values are: * application
- The icon for the
application. * document
- The icon for a file associated with the app. *
documentShared
- The icon for a shared file associated with the app.
Corresponds to the JSON property category
414 415 416 |
# File 'lib/google/apis/drive_v3/classes.rb', line 414 def category @category end |
#icon_url ⇒ String
URL for the icon.
Corresponds to the JSON property iconUrl
419 420 421 |
# File 'lib/google/apis/drive_v3/classes.rb', line 419 def icon_url @icon_url end |
#size ⇒ Fixnum
Size of the icon. Represented as the maximum of the width and height.
Corresponds to the JSON property size
424 425 426 |
# File 'lib/google/apis/drive_v3/classes.rb', line 424 def size @size end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
431 432 433 434 435 |
# File 'lib/google/apis/drive_v3/classes.rb', line 431 def update!(**args) @category = args[:category] if args.key?(:category) @icon_url = args[:icon_url] if args.key?(:icon_url) @size = args[:size] if args.key?(:size) end |