Class: HackerOne::Client::Reporter

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

Instance Method Summary collapse

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

#attributesObject



16
17
18
# File 'lib/hackerone/client/reporter.rb', line 16

def attributes
  OpenStruct.new(@reporter[:attributes])
end

#disabled?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/hackerone/client/reporter.rb', line 20

def disabled?
  attributes.disabled
end

#idObject



12
13
14
# File 'lib/hackerone/client/reporter.rb', line 12

def id
  @reporter[:id]
end