Class: MailReport::TlsRpt::Report
- Inherits:
-
Data
- Object
- Data
- MailReport::TlsRpt::Report
- Defined in:
- lib/mailreport/tls_rpt.rb
Instance Attribute Summary collapse
-
#contact ⇒ Object
readonly
Returns the value of attribute contact.
-
#ended_at ⇒ Object
readonly
Returns the value of attribute ended_at.
-
#organization ⇒ Object
readonly
Returns the value of attribute organization.
-
#policies ⇒ Object
readonly
Returns the value of attribute policies.
-
#report_id ⇒ Object
readonly
Returns the value of attribute report_id.
-
#started_at ⇒ Object
readonly
Returns the value of attribute started_at.
Instance Method Summary collapse
-
#initialize(organization: nil, report_id: nil, contact: nil, started_at: nil, ended_at: nil, policies: []) ⇒ Report
constructor
A new instance of Report.
- #range ⇒ Object
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
#contact ⇒ Object (readonly)
Returns the value of attribute contact
27 28 29 |
# File 'lib/mailreport/tls_rpt.rb', line 27 def contact @contact end |
#ended_at ⇒ Object (readonly)
Returns the value of attribute ended_at
27 28 29 |
# File 'lib/mailreport/tls_rpt.rb', line 27 def ended_at @ended_at end |
#organization ⇒ Object (readonly)
Returns the value of attribute organization
27 28 29 |
# File 'lib/mailreport/tls_rpt.rb', line 27 def organization @organization end |
#policies ⇒ Object (readonly)
Returns the value of attribute policies
27 28 29 |
# File 'lib/mailreport/tls_rpt.rb', line 27 def policies @policies end |
#report_id ⇒ Object (readonly)
Returns the value of attribute report_id
27 28 29 |
# File 'lib/mailreport/tls_rpt.rb', line 27 def report_id @report_id end |
#started_at ⇒ Object (readonly)
Returns the value of attribute started_at
27 28 29 |
# File 'lib/mailreport/tls_rpt.rb', line 27 def started_at @started_at end |
Instance Method Details
#range ⇒ Object
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 |