Sha256: 87db5dd91911d60f1fd9fb815dbe259d9e0bcb83706af48f2b6e9cd8b4d36cbf
Contents?: true
Size: 479 Bytes
Versions: 15
Compression:
Stored size: 479 Bytes
Contents
module HackerOne module Client class StructuredScope DELEGATES = [ :asset_identifier, :asset_type, :eligible_for_bounty, :eligible_for_submission, :instruction ] delegate *DELEGATES, to: :attributes def initialize(scope) @scope = scope end def id @scope[:id] end private def attributes OpenStruct.new(@scope[:attributes]) end end end end
Version data entries
15 entries across 15 versions & 1 rubygems