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
170 171 172 |
# File 'lib/gds_api/link_checker_api.rb', line 170 def completed_at Time.iso8601(self["completed_at"]) end |
#id ⇒ Object
154 155 156 |
# File 'lib/gds_api/link_checker_api.rb', line 154 def id self["id"] end |
#links ⇒ Object
162 163 164 |
# File 'lib/gds_api/link_checker_api.rb', line 162 def links self["links"].map { |link_report| LinkReport.new(link_report) } end |
#status ⇒ Object
158 159 160 |
# File 'lib/gds_api/link_checker_api.rb', line 158 def status self["status"].to_sym end |
#totals ⇒ Object
166 167 168 |
# File 'lib/gds_api/link_checker_api.rb', line 166 def totals OpenStruct.new(self["totals"]) end |