lib/sendgrid4r/rest/contacts/reserved_fields.rb in sendgrid4r-0.3.0 vs lib/sendgrid4r/rest/contacts/reserved_fields.rb in sendgrid4r-0.4.0
- old
+ new
@@ -39,14 +39,10 @@
return resp if resp.nil?
Field.new(resp['name'], resp['type'])
end
def get_reserved_fields(&block)
- resp = get(
- @auth,
- "#{SendGrid4r::Client::BASE_URL}/contactdb/reserved_fields",
- &block
- )
+ resp = get(@auth, "#{BASE_URL}/contactdb/reserved_fields", &block)
SendGrid4r::REST::Contacts::ReservedFields.create_fields(resp)
end
end
end
end