Sha256: f75a8c2d12ff4d9a30dd1ddecf4f1bef574554d2aa30f0aa92b4d9bf4d801de5

Contents?: true

Size: 388 Bytes

Versions: 17

Compression:

Stored size: 388 Bytes

Contents

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

17 entries across 17 versions & 1 rubygems

Version Path
hackerone-client-0.15.0 lib/hackerone/client/reporter.rb
hackerone-client-0.14.2 lib/hackerone/client/reporter.rb
hackerone-client-0.14.1 lib/hackerone/client/reporter.rb
hackerone-client-0.14.0 lib/hackerone/client/reporter.rb
hackerone-client-0.13.0 lib/hackerone/client/reporter.rb
hackerone-client-0.12.0 lib/hackerone/client/reporter.rb
hackerone-client-0.11.0 lib/hackerone/client/reporter.rb
hackerone-client-0.10.0 lib/hackerone/client/reporter.rb
hackerone-client-0.9.1 lib/hackerone/client/reporter.rb
hackerone-client-0.9.0 lib/hackerone/client/reporter.rb
hackerone-client-0.8.0 lib/hackerone/client/reporter.rb
hackerone-client-0.7.0 lib/hackerone/client/reporter.rb
hackerone-client-0.6.0 lib/hackerone/client/reporter.rb
hackerone-client-0.5.2 lib/hackerone/client/reporter.rb
hackerone-client-0.5.1 lib/hackerone/client/reporter.rb
hackerone-client-0.5.0 lib/hackerone/client/reporter.rb
hackerone-client-0.4.0 lib/hackerone/client/reporter.rb