Sha256: fcd0d524eb134d0beff1d7d8f481234c2f9200d60807f5e78f6b319a1f210f4f
Contents?: true
Size: 882 Bytes
Versions: 4
Compression:
Stored size: 882 Bytes
Contents
# frozen_string_literal: true # Code generated for API Clients. DO NOT EDIT. require 'uri' module NgrokAPI module Models class AbuseReport attr_reader :client, :attrs, :id, :uri, :created_at, :urls, :metadata, :status, :hostnames def initialize(client: nil, attrs: {}) @client = client @attrs = attrs @id = @attrs['id'] unless @attrs['uri'].nil? @uri = URI(@attrs['uri']) end @created_at = @attrs['created_at'] @urls = @attrs['urls'] @metadata = @attrs['metadata'] @status = @attrs['status'] @hostnames = @attrs['hostnames'] end def ==(other) @attrs == other.attrs end def to_s @attrs.to_s end def to_h @attrs.to_h end end end end
Version data entries
4 entries across 4 versions & 1 rubygems