Sha256: e116008c5dbff9bb790343584fc770b3aecdb96d0bb7c4d99550bbf65f8d6cb5

Contents?: true

Size: 309 Bytes

Versions: 7

Compression:

Stored size: 309 Bytes

Contents

module HackerOne
  module Client
    class Swag
      delegate :sent, :created_at, to: :attributes

      def initialize(swag)
        @swag = swag
      end

      def id
        @swag[:id]
      end

      private

      def attributes
        OpenStruct.new(@swag[:attributes])
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hackerone-client-0.13.0 lib/hackerone/client/swag.rb
hackerone-client-0.12.0 lib/hackerone/client/swag.rb
hackerone-client-0.11.0 lib/hackerone/client/swag.rb
hackerone-client-0.10.0 lib/hackerone/client/swag.rb
hackerone-client-0.9.1 lib/hackerone/client/swag.rb
hackerone-client-0.9.0 lib/hackerone/client/swag.rb
hackerone-client-0.8.0 lib/hackerone/client/swag.rb