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