module Roclobak
  module Azure
    AzureBlobProperties = Struct.new(:name, :size, :hash, :metadata)

    AzureBlobList = Struct.new(:blobs, :next_marker) do
      def has_more?
        next_marker != nil
      end
    end

    class AzureError < StandardError
      attr_reader :details

      def initialize(details)
        @details = details
      end

      def to_s
        "#{super}: #{@details}"
      end
    end
  end
end