Class: HackerOne::Client::Reporter
- Inherits:
-
Object
- Object
- HackerOne::Client::Reporter
- Defined in:
- lib/hackerone/client/reporter.rb
Instance Method Summary collapse
- #attributes ⇒ Object
- #disabled? ⇒ Boolean
- #id ⇒ Object
-
#initialize(reporter) ⇒ Reporter
constructor
A new instance of Reporter.
Constructor Details
#initialize(reporter) ⇒ Reporter
Returns a new instance of Reporter.
6 7 8 |
# File 'lib/hackerone/client/reporter.rb', line 6 def initialize(reporter) @reporter = reporter end |
Instance Method Details
#attributes ⇒ Object
14 15 16 |
# File 'lib/hackerone/client/reporter.rb', line 14 def attributes OpenStruct.new(@reporter[:attributes]) end |
#disabled? ⇒ Boolean
18 19 20 |
# File 'lib/hackerone/client/reporter.rb', line 18 def disabled? attributes.disabled end |
#id ⇒ Object
10 11 12 |
# File 'lib/hackerone/client/reporter.rb', line 10 def id @reporter[:id] end |