Class: Google::Apis::DriveV2::App::Icon
- Inherits:
-
Object
- Object
- Google::Apis::DriveV2::App::Icon
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/drive_v2/classes.rb,
generated/google/apis/drive_v2/representations.rb,
generated/google/apis/drive_v2/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) ⇒ Icon
constructor
A new instance of Icon.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Icon
Returns a new instance of Icon.
562 563 564 |
# File 'generated/google/apis/drive_v2/classes.rb', line 562 def initialize(**args) update!(**args) end |
Instance Attribute Details
#category ⇒ String
Category of the icon. Allowed values are:
- application - icon for the application
- document - icon for a file associated with the app
- documentShared - icon for a shared file associated with the app
Corresponds to the JSON property
category
550 551 552 |
# File 'generated/google/apis/drive_v2/classes.rb', line 550 def category @category end |
#icon_url ⇒ String
URL for the icon.
Corresponds to the JSON property iconUrl
555 556 557 |
# File 'generated/google/apis/drive_v2/classes.rb', line 555 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
560 561 562 |
# File 'generated/google/apis/drive_v2/classes.rb', line 560 def size @size end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
567 568 569 570 571 |
# File 'generated/google/apis/drive_v2/classes.rb', line 567 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 |