lib/mailersend/recipients/recipients.rb in mailersend-ruby-0.2.0 vs lib/mailersend/recipients/recipients.rb in mailersend-ruby-0.2.1
- old
+ new
@@ -15,14 +15,14 @@
@recipient_id = recipient_id
end
def list(page: nil, limit: nil)
hash = {
- "page" => page,
- "limit" => limit
+ 'page' => page,
+ 'limit' => limit
}
- response = client.http.get(URI::HTTPS.build(host: API_BASE_HOST, path: "/v1/recipients",
+ response = client.http.get(URI::HTTPS.build(host: API_BASE_HOST, path: '/v1/recipients',
query: URI.encode_www_form(hash)))
puts response
end
def single(recipient_id:)