struct Gemini::Blob
- Gemini::Blob
- Struct
- Value
- Object
Overview
Raw media bytes.
Text should not be sent as raw bytes, use the Text
type.
Included Modules
- JSON::Serializable
Defined in:
gemini/types.crConstructors
Instance Method Summary
-
#data : String
Raw bytes for media formats.
-
#inspect(io : IO)
Appends this struct's name and instance variables names and values to the given IO.
-
#mime_type : String
The IANA standard MIME type of the source data.
- #to_json_object_key
Constructor Detail
Instance Method Detail
def inspect(io : IO)
#
Description copied from struct Struct
Appends this struct's name and instance variables names and values to the given IO.
struct Point
def initialize(@x : Int32, @y : Int32)
end
end
p1 = Point.new 1, 2
p1.to_s # "Point(@x=1, @y=2)"
p1.inspect # "Point(@x=1, @y=2)"
def mime_type : String
#
The IANA standard MIME type of the source data. Examples: "image/png" If an unsupported MIME type is provided, an error will be returned. For a complete list of supported types, see Supported file formats.