Class: HackerOne::Client::Activities::BountyAwarded
- Inherits:
-
Activity
- Object
- Activity
- HackerOne::Client::Activities::BountyAwarded
show all
- Defined in:
- lib/hackerone/client/activity.rb
Instance Method Summary
collapse
Methods inherited from Activity
#initialize, #internal?
Instance Method Details
#bonus_amount ⇒ Object
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_amount ⇒ Object
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
|