Class: HackerOne::Client::Attachment

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

Instance Method Summary collapse

Constructor Details

#initialize(attachment) ⇒ Attachment

Returns a new instance of Attachment.



9
10
11
# File 'lib/hackerone/client/attachment.rb', line 9

def initialize(attachment)
  @attachment = attachment
end

Instance Method Details

#idObject



13
14
15
# File 'lib/hackerone/client/attachment.rb', line 13

def id
  @attachment[:id]
end