jazminschroeder/fedex — pull request #12 by jordanbyron (2012-07-03 15:25:42+00:00)
Title: Expand label generation abilities

This pull requests adds the following additional options to label generation:

- Image format can now be specified in the configuration options

```ruby
options[:format] = 'png'
```

- `filename` is now an optional parameter allowing label images to be retrieved and stored using alternatives to disk storage.

```ruby
options = { ... } # Standard Options
label = fedex.label(options)

label.has_image?
# => true

label.image
# => "\x89PNG ..."
```

- Package dimensions are optional
- Customer reference can be included in the request and returned label
- Tracking number is parsed and included in `Fedex::Label`

All of these options work while keeping the old functionality intact. Labels will be automatically saved if `filename` is specified, and `format` will default to `'pdf'` if missing.