Class: Google::Apis::KeepV1::Attachment

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

Instance Method Summary collapse

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_typeArray<String>

The MIME types (IANA media types) in which the attachment is available. Corresponds to the JSON property mimeType

Returns:

  • (Array<String>)


32
33
34
# File 'lib/google/apis/keep_v1/classes.rb', line 32

def mime_type
  @mime_type
end

#nameString

The resource name; Corresponds to the JSON property name

Returns:

  • (String)


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