Class: Google::Apis::KeepV1::Attachment
- Inherits:
-
Object
- Object
- Google::Apis::KeepV1::Attachment
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/keep_v1/classes.rb,
lib/google/apis/keep_v1/representations.rb,
lib/google/apis/keep_v1/representations.rb
Overview
An attachment to a note.
Instance Attribute Summary collapse
-
#mime_type ⇒ Array<String>
The MIME types (IANA media types) in which the attachment is available.
-
#name ⇒ String
The resource name; Corresponds to the JSON property
name
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Attachment
constructor
A new instance of Attachment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Attachment
Returns a new instance of Attachment.
39 40 41 |
# File 'lib/google/apis/keep_v1/classes.rb', line 39 def initialize(**args) update!(**args) end |
Instance Attribute Details
#mime_type ⇒ Array<String>
The MIME types (IANA media types) in which the attachment is available.
Corresponds to the JSON property mimeType
32 33 34 |
# File 'lib/google/apis/keep_v1/classes.rb', line 32 def mime_type @mime_type end |
#name ⇒ String
The resource name;
Corresponds to the JSON property name
37 38 39 |
# File 'lib/google/apis/keep_v1/classes.rb', line 37 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
44 45 46 47 |
# File 'lib/google/apis/keep_v1/classes.rb', line 44 def update!(**args) @mime_type = args[:mime_type] if args.key?(:mime_type) @name = args[:name] if args.key?(:name) end |