```ruby
require 'Date'
module Similarweb
  module EstimatedVisits
    def estimated_visits(domain)
      date = Date.today.prev_month.strftime("%m-%Y")
      response = self.http_client.get "#{domain}/v1/visits?start=#{date}&end=#{date}&Format=JSON&UserKey=#{self.api_key}"
      JSON(response.body)
    end
  end
end
```

Use library date with downcase d
user
```ruby
require 'date'
module Similarweb
  module EstimatedVisits
    def estimated_visits(domain)
      date = Date.today.prev_month.strftime("%m-%Y")
      response = self.http_client.get "#{domain}/v1/visits?start=#{date}&end=#{date}&Format=JSON&UserKey=#{self.api_key}"
      JSON(response.body)
    end
  end
end
```
assistant