Sha256: d1b8c266db4307fa8d6eb9321677d0ec64270f4476d028090091363bca10d997

Contents?: true

Size: 266 Bytes

Versions: 2

Compression:

Stored size: 266 Bytes

Contents

module BlueStateDigital
  class EmailUnsubscribe < ApiDataModel
    attr_accessor :email, :reason

    def unsubscribe!
      result = connection.perform_request '/cons/email_unsubscribe', {email: email, reason: reason}, 'POST'
      result == ''
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
blue_state_digital-0.7.0 lib/blue_state_digital/email_unsubscribe.rb
blue_state_digital-0.6.0 lib/blue_state_digital/email_unsubscribe.rb