Class: GroupDocsConversionCloud::StartConvertRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/groupdocs_conversion_cloud/api/async_api.rb

Overview

Request model for start_convert operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(format, file, from_page = nil, pages_count = nil) ⇒ StartConvertRequest

Initializes a new instance.

Parameters:

  • format

    Requested conversion format

  • file

    Input file to convert

  • from_page (defaults to: nil)

    Page start conversion from

  • pages_count (defaults to: nil)

    Number of pages to convert



487
488
489
490
491
492
# File 'lib/groupdocs_conversion_cloud/api/async_api.rb', line 487

def initialize(format, file, from_page = nil, pages_count = nil)
   self.format = format
   self.file = file
   self.from_page = from_page
   self.pages_count = pages_count
end

Instance Attribute Details

#fileObject

Input file to convert



475
476
477
# File 'lib/groupdocs_conversion_cloud/api/async_api.rb', line 475

def file
  @file
end

#formatObject

Requested conversion format



473
474
475
# File 'lib/groupdocs_conversion_cloud/api/async_api.rb', line 473

def format
  @format
end

#from_pageObject

Page start conversion from



477
478
479
# File 'lib/groupdocs_conversion_cloud/api/async_api.rb', line 477

def from_page
  @from_page
end

#pages_countObject

Number of pages to convert



479
480
481
# File 'lib/groupdocs_conversion_cloud/api/async_api.rb', line 479

def pages_count
  @pages_count
end