Class: MailReport::TlsRpt::Report

Inherits:
Data
  • Object
show all
Defined in:
lib/mailreport/tls_rpt.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(organization: nil, report_id: nil, contact: nil, started_at: nil, ended_at: nil, policies: []) ⇒ Report

Returns a new instance of Report.



28
29
30
# File 'lib/mailreport/tls_rpt.rb', line 28

def initialize(organization: nil, report_id: nil, contact: nil, started_at: nil, ended_at: nil, policies: [])
  super
end

Instance Attribute Details

#contactObject (readonly)

Returns the value of attribute contact

Returns:

  • (Object)

    the current value of contact



27
28
29
# File 'lib/mailreport/tls_rpt.rb', line 27

def contact
  @contact
end

#ended_atObject (readonly)

Returns the value of attribute ended_at

Returns:

  • (Object)

    the current value of ended_at



27
28
29
# File 'lib/mailreport/tls_rpt.rb', line 27

def ended_at
  @ended_at
end

#organizationObject (readonly)

Returns the value of attribute organization

Returns:

  • (Object)

    the current value of organization



27
28
29
# File 'lib/mailreport/tls_rpt.rb', line 27

def organization
  @organization
end

#policiesObject (readonly)

Returns the value of attribute policies

Returns:

  • (Object)

    the current value of policies



27
28
29
# File 'lib/mailreport/tls_rpt.rb', line 27

def policies
  @policies
end

#report_idObject (readonly)

Returns the value of attribute report_id

Returns:

  • (Object)

    the current value of report_id



27
28
29
# File 'lib/mailreport/tls_rpt.rb', line 27

def report_id
  @report_id
end

#started_atObject (readonly)

Returns the value of attribute started_at

Returns:

  • (Object)

    the current value of started_at



27
28
29
# File 'lib/mailreport/tls_rpt.rb', line 27

def started_at
  @started_at
end

Instance Method Details

#rangeObject



32
33
34
# File 'lib/mailreport/tls_rpt.rb', line 32

def range
  started_at..ended_at if started_at && ended_at && started_at <= ended_at
end