Class: GdsApi::LinkCheckerApi::BatchReport

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/gds_api/link_checker_api.rb

Instance Method Summary collapse

Instance Method Details

#completed_atObject



170
171
172
# File 'lib/gds_api/link_checker_api.rb', line 170

def completed_at
  Time.iso8601(self["completed_at"])
end

#idObject



154
155
156
# File 'lib/gds_api/link_checker_api.rb', line 154

def id
  self["id"]
end


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

#statusObject



158
159
160
# File 'lib/gds_api/link_checker_api.rb', line 158

def status
  self["status"].to_sym
end

#totalsObject



166
167
168
# File 'lib/gds_api/link_checker_api.rb', line 166

def totals
  OpenStruct.new(self["totals"])
end