Sha256: 3cd2e30c4d698e0171196817912d54f143673c6be93f5eb36c5af0e96f33f90a

Contents?: true

Size: 453 Bytes

Versions: 1

Compression:

Stored size: 453 Bytes

Contents

module Gobuster
  #
  # Represents an S3 bucket found by `gobuster s3`.
  #
  class S3Bucket

    # The URL to the S3 bucket.
    #
    # @return [String]
    attr_reader :url

    #
    # Initializes the S3 bucket.
    #
    # @param [String] url
    #
    def initialize(url)
      @url = url
    end

    #
    # Converts the S3 bucket to a String.
    #
    # @return [String]
    #
    def to_s
      @url
    end

    alias to_str to_s

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-gobuster-0.1.0 lib/gobuster/s3_bucket.rb