amro/uakari — Issue #14: options attribute seems unused
Author: scottley
Created: 2012-01-15 20:07:58+00:00
State: open

In uakari.rb:

```ruby
attr_accessor :api_key, :timeout, :options

def initialize(api_key = nil, extra_params = {})
@api_key = api_key || ENV['MC_API_KEY'] || ENV['MAILCHIMP_API_KEY'] || self.class.api_key
@default_params = {
:apikey => @api_key,
:options => {
:track_opens => true,
:track_clicks => true
}
}.merge(extra_params)
end
```

it looks like the :options attribute defined in the attr_accessor clause is unused. Is that right? If not, we could create a read-only getter method that returns @default_params:

```ruby
def options
@default_params.clone
end
```