Class: Google::Apis::GmailpostmastertoolsV2::OneClickUnsubscribeVerdict

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gmailpostmastertools_v2/classes.rb,
lib/google/apis/gmailpostmastertools_v2/representations.rb,
lib/google/apis/gmailpostmastertools_v2/representations.rb

Overview

Compliance verdict for whether a sender meets the one-click unsubscribe compliance requirement.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OneClickUnsubscribeVerdict

Returns a new instance of OneClickUnsubscribeVerdict.



703
704
705
# File 'lib/google/apis/gmailpostmastertools_v2/classes.rb', line 703

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#reasonString

The specific reason for the compliance verdict. Must be empty if the status is compliant. Corresponds to the JSON property reason

Returns:

  • (String)


696
697
698
# File 'lib/google/apis/gmailpostmastertools_v2/classes.rb', line 696

def reason
  @reason
end

#statusGoogle::Apis::GmailpostmastertoolsV2::ComplianceStatus

The status of a sender compliance requirement. Corresponds to the JSON property status



701
702
703
# File 'lib/google/apis/gmailpostmastertools_v2/classes.rb', line 701

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



708
709
710
711
# File 'lib/google/apis/gmailpostmastertools_v2/classes.rb', line 708

def update!(**args)
  @reason = args[:reason] if args.key?(:reason)
  @status = args[:status] if args.key?(:status)
end