Class: Google::Apis::DriveV3::AppIcons

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AppIcons

Returns a new instance of AppIcons.



416
417
418
# File 'lib/google/apis/drive_v3/classes.rb', line 416

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

Instance Attribute Details

#categoryString

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

Returns:

  • (String)


404
405
406
# File 'lib/google/apis/drive_v3/classes.rb', line 404

def category
  @category
end

#icon_urlString

URL for the icon. Corresponds to the JSON property iconUrl

Returns:

  • (String)


409
410
411
# File 'lib/google/apis/drive_v3/classes.rb', line 409

def icon_url
  @icon_url
end

#sizeFixnum

Size of the icon. Represented as the maximum of the width and height. Corresponds to the JSON property size

Returns:

  • (Fixnum)


414
415
416
# File 'lib/google/apis/drive_v3/classes.rb', line 414

def size
  @size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



421
422
423
424
425
# File 'lib/google/apis/drive_v3/classes.rb', line 421

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