Class: Pikuri::Thunderbird::ComposeGuard::Verdict

Inherits:
Data
  • Object
show all
Defined in:
lib/pikuri/thunderbird/compose_guard.rb

Overview

The outcome of checking one compose request.

  • okfalse only when a body flag forced a fail-closed abort.
  • error — the fail-closed message (String), present iff ok is false.
  • to / cc / bcc — Array<String> addresses that passed the hard checks (rejected fields come back empty).
  • subject — the String subject, or nil (absent, or dropped on a flag).
  • body — the String body when ok (guaranteed clean), else nil.
  • notes — Array<String> human-facing warnings (dropped fields + novelty) for the observation.

Instance Attribute Summary collapse

Instance Attribute Details

#bccObject (readonly)

Returns the value of attribute bcc

Returns:

  • (Object)

    the current value of bcc



90
91
92
# File 'lib/pikuri/thunderbird/compose_guard.rb', line 90

def bcc
  @bcc
end

#bodyObject (readonly)

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



90
91
92
# File 'lib/pikuri/thunderbird/compose_guard.rb', line 90

def body
  @body
end

#ccObject (readonly)

Returns the value of attribute cc

Returns:

  • (Object)

    the current value of cc



90
91
92
# File 'lib/pikuri/thunderbird/compose_guard.rb', line 90

def cc
  @cc
end

#errorObject (readonly)

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



90
91
92
# File 'lib/pikuri/thunderbird/compose_guard.rb', line 90

def error
  @error
end

#notesObject (readonly)

Returns the value of attribute notes

Returns:

  • (Object)

    the current value of notes



90
91
92
# File 'lib/pikuri/thunderbird/compose_guard.rb', line 90

def notes
  @notes
end

#okObject (readonly)

Returns the value of attribute ok

Returns:

  • (Object)

    the current value of ok



90
91
92
# File 'lib/pikuri/thunderbird/compose_guard.rb', line 90

def ok
  @ok
end

#subjectObject (readonly)

Returns the value of attribute subject

Returns:

  • (Object)

    the current value of subject



90
91
92
# File 'lib/pikuri/thunderbird/compose_guard.rb', line 90

def subject
  @subject
end

#toObject (readonly)

Returns the value of attribute to

Returns:

  • (Object)

    the current value of to



90
91
92
# File 'lib/pikuri/thunderbird/compose_guard.rb', line 90

def to
  @to
end