README.md in cloudconvert-ruby-0.1.8 vs README.md in cloudconvert-ruby-0.1.9
- old
+ new
@@ -18,16 +18,16 @@
## Basic Example
```ruby
@client = CloudConvert::Client.new(api_key: "Your API Key")
-@process = @client.build_process(input_format: "jpg", output_format: "pdf")
+@process = @client.build_process(input_format: :jpg, output_format: :pdf)
@process_response = @process.create
if @process_response[:success]
@conversion_response = @process.convert(
input: "download",
- outputformat: "pdf",
+ outputformat: :pdf,
file: "link to image",
download: "false"
)
end
if @conversion_response[:success]
@@ -46,11 +46,11 @@
Once the client object is created, we can build a process for our conversion. In this example, we will convert a jpg image into a pdf.
Note: You can build as many processes as you want, just make sure that you are aware of any limitations placed on your account by Cloud Convert before you start converting files.
```ruby
-@process = @client.build_process(input_format: "jpg", output_format: "pdf")
+@process = @client.build_process(input_format: :jpg, output_format: :pdf)
```
We now need to tell Cloud Convert that we are creating a process. To do this, we will use the `create` method.
```ruby
@@ -64,10 +64,10 @@
To start a conversion, you can execute the `convert` method. For all the parameters supported, visit the Cloud Convert API Doc [here](https://cloudconvert.com/apidoc#start)
```ruby
@conversion_response = @process.convert(
input: "download",
- outputformat: "pdf",
+ outputformat: :pdf,
file: "link to image",
download: "false"
)
```