Class: Google::Apis::SheetsV4::Chip
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::Chip
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/sheets_v4/classes.rb,
lib/google/apis/sheets_v4/representations.rb,
lib/google/apis/sheets_v4/representations.rb
Overview
The Smart Chip.
Instance Attribute Summary collapse
-
#person_properties ⇒ Google::Apis::SheetsV4::PersonProperties
Properties specific to a linked person.
-
#rich_link_properties ⇒ Google::Apis::SheetsV4::RichLinkProperties
Properties of a link to a Google resource (such as a file in Drive, a YouTube video, a Maps address, or a Calendar event).
Instance Method Summary collapse
-
#initialize(**args) ⇒ Chip
constructor
A new instance of Chip.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Chip
Returns a new instance of Chip.
3311 3312 3313 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 3311 def initialize(**args) update!(**args) end |
Instance Attribute Details
#person_properties ⇒ Google::Apis::SheetsV4::PersonProperties
Properties specific to a linked person.
Corresponds to the JSON property personProperties
3300 3301 3302 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 3300 def person_properties @person_properties end |
#rich_link_properties ⇒ Google::Apis::SheetsV4::RichLinkProperties
Properties of a link to a Google resource (such as a file in Drive, a YouTube
video, a Maps address, or a Calendar event). Only Drive files can be written
as chips. All other rich link types are read only. URIs cannot exceed 2000
bytes when writing. NOTE: Writing Drive file chips requires at least one of
the drive.file, drive.readonly, or drive OAuth scopes.
Corresponds to the JSON property richLinkProperties
3309 3310 3311 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 3309 def rich_link_properties @rich_link_properties end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3316 3317 3318 3319 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 3316 def update!(**args) @person_properties = args[:person_properties] if args.key?(:person_properties) @rich_link_properties = args[:rich_link_properties] if args.key?(:rich_link_properties) end |