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.



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

def initialize(scope)
  @scope = scope
end

Instance Method Details

#idObject



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

def id
  @scope[:id]
end