Sha256: bbd1b6b4196dfeac8c0732378a23f305ee3b03f6bc466382ed3d17b5d6f5f580
Contents?: true
Size: 433 Bytes
Versions: 6
Compression:
Stored size: 433 Bytes
Contents
# frozen_string_literal: true module HackerOne module Client class Attachment delegate :expiring_url, :file_name, :content_type, :created_at, \ :file_size, to: :attributes def initialize(attachment) @attachment = attachment end def id @attachment[:id] end private def attributes OpenStruct.new(@attachment[:attributes]) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems