class SendGrid::IpManagement
Attributes
sendgrid_client[RW]
Public Class Methods
new(sendgrid_client:)
click to toggle source
# File lib/sendgrid/helpers/ip_management/ip_management.rb, line 7 def initialize(sendgrid_client:) @sendgrid_client = sendgrid_client end
Public Instance Methods
unassigned()
click to toggle source
# File lib/sendgrid/helpers/ip_management/ip_management.rb, line 11 def unassigned response = @sendgrid_client.ips.get ips = JSON.parse(response.body) ips.select { |ip| ip.subusers.empty? } end