Sha256: 8f0d92096d3bf175c78fa504b69d7b3283705b0ef33f9217a54910505973f109

Contents?: true

Size: 882 Bytes

Versions: 2

Compression:

Stored size: 882 Bytes

Contents

module Discorb
  #
  # Represents a single asset.
  class Asset < Discorb::DiscordModel
    #
    # Initialize a new instance of the Asset class.
    # @private
    #
    # @param [Discorb::Client] client The client that instantiated the object.
    # @param [Hash] data The data of the object.
    def initialize: (untyped target, untyped hash, ?path: untyped) -> void

    #
    # URL of the asset.
    #
    # @param [String] image_format The image format.
    # @param [Integer] size The size of the image.
    #
    # @return [String] URL of the asset.
    def url: (?image_format: String?, ?size: Integer) -> String

    def inspect: -> String

    def endpoint: -> untyped

    # @return [String] The hash of asset.
    attr_reader hash: String

    # @return [Boolean] Whether the asset is animated.
    attr_reader animated?: bool
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
discorb-0.18.1 sig/discorb/asset.rbs
discorb-0.18.0 sig/discorb/asset.rbs