Class: GdsApi::LinkCheckerApi::BatchReport
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- GdsApi::LinkCheckerApi::BatchReport
- Defined in:
- lib/gds_api/link_checker_api.rb
Instance Method Summary collapse
Instance Method Details
#completed_at ⇒ Object
139 140 141 |
# File 'lib/gds_api/link_checker_api.rb', line 139 def completed_at Time.iso8601(self["completed_at"]) end |
#id ⇒ Object
123 124 125 |
# File 'lib/gds_api/link_checker_api.rb', line 123 def id self["id"] end |
#links ⇒ Object
131 132 133 |
# File 'lib/gds_api/link_checker_api.rb', line 131 def links self["links"].map { |link_report| LinkReport.new(link_report) } end |
#status ⇒ Object
127 128 129 |
# File 'lib/gds_api/link_checker_api.rb', line 127 def status self["status"].to_sym end |
#totals ⇒ Object
135 136 137 |
# File 'lib/gds_api/link_checker_api.rb', line 135 def totals OpenStruct.new(self["totals"]) end |