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.



6
7
8
# File 'lib/hackerone/client/reporter.rb', line 6

def initialize(reporter)
  @reporter = reporter
end

Instance Method Details

#attributesObject



14
15
16
# File 'lib/hackerone/client/reporter.rb', line 14

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

#disabled?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/hackerone/client/reporter.rb', line 18

def disabled?
  attributes.disabled
end

#idObject



10
11
12
# File 'lib/hackerone/client/reporter.rb', line 10

def id
  @reporter[:id]
end