Sha256: 9b8cf0a4634ed33d08f1c1ed8be3560aad2acef0fc252761bb918fa216dc70dd

Contents?: true

Size: 419 Bytes

Versions: 10

Compression:

Stored size: 419 Bytes

Contents

# frozen_string_literal: true

module HackerOne
  module Client
    class Reporter
      delegate :username, :name, :created_at, to: :attributes

      def initialize(reporter)
        @reporter = reporter
      end

      def id
        @reporter[:id]
      end

      def attributes
        OpenStruct.new(@reporter[:attributes])
      end

      def disabled?
        attributes.disabled
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
hackerone-client-0.23.0 lib/hackerone/client/reporter.rb
hackerone-client-0.22.1 lib/hackerone/client/reporter.rb
hackerone-client-0.22.0 lib/hackerone/client/reporter.rb
hackerone-client-0.21.0 lib/hackerone/client/reporter.rb
hackerone-client-0.20.1 lib/hackerone/client/reporter.rb
hackerone-client-0.20.0 lib/hackerone/client/reporter.rb
hackerone-client-0.19.0 lib/hackerone/client/reporter.rb
hackerone-client-0.18.0 lib/hackerone/client/reporter.rb
hackerone-client-0.17.0 lib/hackerone/client/reporter.rb
hackerone-client-0.16.0 lib/hackerone/client/reporter.rb