Sha256: 5e6672ff1955c4dc02bedef8e246e8896ef6111b256a8316f17afa8599968fcd

Contents?: true

Size: 727 Bytes

Versions: 6

Compression:

Stored size: 727 Bytes

Contents

# frozen_string_literal: true

module NgrokAPI
  module Models
    class AbuseReport
      attr_reader :client,
        :result,
        :id,
        :uri,
        :created_at,
        :urls,
        :metadata,
        :status,
        :hostnames

      def initialize(client:, result:)
        @client = client
        @result = result
        @id = @result['id']
        @uri = @result['uri']
        @created_at = @result['created_at']
        @urls = @result['urls']
        @metadata = @result['metadata']
        @status = @result['status']
        @hostnames = @result['hostnames']
      end

      def ==(other)
        @result == other.result
      end

      def to_s
        @result.to_s
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ngrok-api-0.18.0 lib/ngrokapi/models/abuse_report.rb
ngrok-api-0.17.0 lib/ngrokapi/models/abuse_report.rb
ngrok-api-0.16.0 lib/ngrokapi/models/abuse_report.rb
ngrok-api-0.15.0 lib/ngrokapi/models/abuse_report.rb
ngrok-api-0.14.0 lib/ngrokapi/models/abuse_report.rb
ngrok-api-0.12.0 lib/ngrokapi/models/abuse_report.rb