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



139
140
141
# File 'lib/gds_api/link_checker_api.rb', line 139

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

#idObject



123
124
125
# File 'lib/gds_api/link_checker_api.rb', line 123

def id
  self["id"]
end


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

#statusObject



127
128
129
# File 'lib/gds_api/link_checker_api.rb', line 127

def status
  self["status"].to_sym
end

#totalsObject



135
136
137
# File 'lib/gds_api/link_checker_api.rb', line 135

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