Sha256: 9e8e1a94c277ad59c29bd04d97471b13409f1075b71f23cff47c1ebee465b877

Contents?: true

Size: 300 Bytes

Versions: 8

Compression:

Stored size: 300 Bytes

Contents

module HackerOne
  module Client
    class User
      delegate :username, to: :attributes

      def initialize(user)
        @user = user
      end

      def id
        @user[:id]
      end

      private

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
hackerone-client-0.9.1 lib/hackerone/client/user.rb
hackerone-client-0.9.0 lib/hackerone/client/user.rb
hackerone-client-0.8.0 lib/hackerone/client/user.rb
hackerone-client-0.7.0 lib/hackerone/client/user.rb
hackerone-client-0.6.0 lib/hackerone/client/user.rb
hackerone-client-0.5.2 lib/hackerone/client/user.rb
hackerone-client-0.5.1 lib/hackerone/client/user.rb
hackerone-client-0.5.0 lib/hackerone/client/user.rb