Class: Google::Apis::DriveV2::About::ExportFormat

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ExportFormat

Returns a new instance of ExportFormat.


256
257
258
# File 'generated/google/apis/drive_v2/classes.rb', line 256

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

Instance Attribute Details

#sourceString

The content type to convert from. Corresponds to the JSON property source

Returns:

  • (String)

249
250
251
# File 'generated/google/apis/drive_v2/classes.rb', line 249

def source
  @source
end

#targetsArray<String>

The possible content types to convert to. Corresponds to the JSON property targets

Returns:

  • (Array<String>)

254
255
256
# File 'generated/google/apis/drive_v2/classes.rb', line 254

def targets
  @targets
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


261
262
263
264
# File 'generated/google/apis/drive_v2/classes.rb', line 261

def update!(**args)
  @source = args[:source] if args.key?(:source)
  @targets = args[:targets] if args.key?(:targets)
end