Sha256: ee0ed7a272209ea5a5ff3ba1b798d8bfb35adf318542fab7fed5a98313633594
Contents?: true
Size: 336 Bytes
Versions: 16
Compression:
Stored size: 336 Bytes
Contents
require 'json' module SendGrid class IpManagement attr_accessor :sendgrid_client def initialize(sendgrid_client:) @sendgrid_client = sendgrid_client end def unassigned response = @sendgrid_client.ips.get ips = JSON.parse(response.body) ips.select {|ip| ip.subusers.empty?} end end end
Version data entries
16 entries across 16 versions & 1 rubygems