Class: Studio::EmailSmoke::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/studio/email_smoke.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#app_nameObject

Returns the value of attribute app_name

Returns:

  • (Object)

    the current value of app_name



9
10
11
# File 'lib/studio/email_smoke.rb', line 9

def app_name
  @app_name
end

#delivery_methodObject

Returns the value of attribute delivery_method

Returns:

  • (Object)

    the current value of delivery_method



9
10
11
# File 'lib/studio/email_smoke.rb', line 9

def delivery_method
  @delivery_method
end

#external_deliveryObject

Returns the value of attribute external_delivery

Returns:

  • (Object)

    the current value of external_delivery



9
10
11
# File 'lib/studio/email_smoke.rb', line 9

def external_delivery
  @external_delivery
end

#fromObject

Returns the value of attribute from

Returns:

  • (Object)

    the current value of from



9
10
11
# File 'lib/studio/email_smoke.rb', line 9

def from
  @from
end

#message_idObject

Returns the value of attribute message_id

Returns:

  • (Object)

    the current value of message_id



9
10
11
# File 'lib/studio/email_smoke.rb', line 9

def message_id
  @message_id
end

#perform_deliveriesObject

Returns the value of attribute perform_deliveries

Returns:

  • (Object)

    the current value of perform_deliveries



9
10
11
# File 'lib/studio/email_smoke.rb', line 9

def perform_deliveries
  @perform_deliveries
end

#subjectObject

Returns the value of attribute subject

Returns:

  • (Object)

    the current value of subject



9
10
11
# File 'lib/studio/email_smoke.rb', line 9

def subject
  @subject
end

#toObject

Returns the value of attribute to

Returns:

  • (Object)

    the current value of to



9
10
11
# File 'lib/studio/email_smoke.rb', line 9

def to
  @to
end

#transportObject

Returns the value of attribute transport

Returns:

  • (Object)

    the current value of transport



9
10
11
# File 'lib/studio/email_smoke.rb', line 9

def transport
  @transport
end

Instance Method Details

#report_linesObject



21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/studio/email_smoke.rb', line 21

def report_lines
  [
    "Email smoke -> #{external_delivery ? 'sent' : 'not externally sent'}",
    "  app=#{app_name}",
    "  to=#{to}",
    "  from=#{from}",
    "  subject=#{subject}",
    "  transport=#{transport}",
    "  delivery_method=#{delivery_method}",
    "  perform_deliveries=#{perform_deliveries}",
    "  external_delivery=#{external_delivery}",
    "  message_id=#{message_id || '(none)'}"
  ]
end