Class: HackerOne::Client::Activities::BountyAwarded

Inherits:
Activity
  • Object
show all
Defined in:
lib/hackerone/client/activity.rb

Instance Method Summary collapse

Methods inherited from Activity

#initialize, #internal?

Constructor Details

This class inherits a constructor from HackerOne::Client::Activities::Activity

Instance Method Details

#bonus_amountObject



35
36
37
38
# File 'lib/hackerone/client/activity.rb', line 35

def bonus_amount
  formatted_bonus_amount = attributes.bonus_amount || "0"
  formatted_bonus_amount.gsub(/[^\d]/, "").to_i
end

#bounty_amountObject



30
31
32
33
# File 'lib/hackerone/client/activity.rb', line 30

def bounty_amount
  formatted_bounty_amount = attributes.bounty_amount || "0"
  formatted_bounty_amount.gsub(/[^\d]/, "").to_i
end