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.
8 9 10 |
# File 'lib/hackerone/client/reporter.rb', line 8 def initialize(reporter) @reporter = reporter end |
Instance Method Details
#attributes ⇒ Object
16 17 18 |
# File 'lib/hackerone/client/reporter.rb', line 16 def attributes OpenStruct.new(@reporter[:attributes]) end |
#disabled? ⇒ Boolean
20 21 22 |
# File 'lib/hackerone/client/reporter.rb', line 20 def disabled? attributes.disabled end |
#id ⇒ Object
12 13 14 |
# File 'lib/hackerone/client/reporter.rb', line 12 def id @reporter[:id] end |