Sha256: 5c6881f3d8d16e10d80f961911fd2b0eb4b42fa7ad7136705296d583a338bed4
Contents?: true
Size: 910 Bytes
Versions: 2
Compression:
Stored size: 910 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 %a{pure} def inspect: -> String %a{pure} 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.20.0 | sig/discorb/asset.rbs |
discorb-0.19.0 | sig/discorb/asset.rbs |