Class: HackerOne::Client::StructuredScope

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

Constant Summary collapse

DELEGATES =
[
  :asset_identifier,
  :asset_type,
  :eligible_for_bounty,
  :eligible_for_submission,
  :instruction
]

Instance Method Summary collapse

Constructor Details

#initialize(scope) ⇒ StructuredScope

Returns a new instance of StructuredScope.



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

def initialize(scope)
  @scope = scope
end

Instance Method Details

#idObject



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

def id
  @scope[:id]
end