Sha256: 64323cf61fcea2ae4ab09664f34eb19295c377740d6fbcc9833f0b71ac460833

Contents?: true

Size: 493 Bytes

Versions: 10

Compression:

Stored size: 493 Bytes

Contents

# frozen_string_literal: true

module HackerOne
  module Client
    class Bounty
      delegate(
        :amount,
        :bonus_amount,
        :awarded_amount,
        :awarded_bonus_amount,
        :awarded_currency,
        :created_at,
        to: :attributes
      )

      def initialize(bounty)
        @bounty = bounty
      end

      def id
        @bounty[:id]
      end

      private

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

Version data entries

10 entries across 10 versions & 1 rubygems

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