Sha256: 45ed6e168fc7a2c113709708c346f1f50b5719abb9a149154b90e25a4a776839

Contents?: true

Size: 492 Bytes

Versions: 10

Compression:

Stored size: 492 Bytes

Contents

module SendGridWebApi::Modules
  class Unsubscribe < SendGridWebApi::Client
    def get options = {}
      unsubscribe_get_url = "unsubscribes.get.json"
      query_api(unsubscribe_get_url, options)
    end

    def add options = {}
      unsubscribe_add_url = "unsubscribes.add.json"
      query_api(unsubscribe_add_url, options)
    end

    def delete options = {}
      unsubscribe_delete_url = "unsubscribes.delete.json"
      query_api(unsubscribe_delete_url, options)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
sendgrid_webapi-0.1.2 lib/web_api/unsubscribes.rb
sendgrid_webapi-0.1.1 lib/web_api/unsubscribes.rb
sendgrid_webapi-0.1.0 lib/web_api/unsubscribes.rb
sendgrid_webapi-0.0.8 lib/web_api/unsubscribes.rb
sendgrid_webapi-0.0.6 lib/web_api/unsubscribes.rb
sendgrid_webapi-0.0.5 lib/web_api/unsubscribes.rb
sendgrid_webapi-0.0.4 lib/web_api/unsubscribes.rb
sendgrid_webapi-0.0.3 lib/web_api/unsubscribes.rb
sendgrid_webapi-0.0.2 lib/web_api/unsubscribes.rb
sendgrid_webapi-0.0.1 lib/web_api/unsubscribes.rb