class HackerOne::Client::Attachment
Public Class Methods
new(attachment)
click to toggle source
# File lib/hackerone/client/attachment.rb, line 9 def initialize(attachment) @attachment = attachment end
Public Instance Methods
id()
click to toggle source
# File lib/hackerone/client/attachment.rb, line 13 def id @attachment[:id] end
Private Instance Methods
attributes()
click to toggle source
# File lib/hackerone/client/attachment.rb, line 19 def attributes OpenStruct.new(@attachment[:attributes]) end