Arie/serveme

View on GitHub
app/views/api/league_requests/_result.json.jbuilder

Summary

Maintainability
Test Coverage
# frozen_string_literal: true

json.reservation_id result.reservation_id
json.reservation_starts_at result.reservation.starts_at
json.reservation_ends_at result.reservation.ends_at
json.steam_uid result.steam_uid
json.ip result.ip
json.flagged_ip @asns[result.ip] && ReservationPlayer.banned_asn?(@asns[result.ip])
json.asn @asns[result.ip]&.autonomous_system_number
json.asn_org @asns[result.ip]&.autonomous_system_organization
json.asn_net @asns[result.ip]&.network