struct ACP::Protocol::TextResourceContents

Overview

Text-based resource contents embedded in a resource content block.

Included Modules

Defined in:

acp/protocol/content_block.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(uri : String, text : String, mime_type : String | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def meta : Hash(String, JSON::Any) | Nil #

Extension metadata.


[View source]
def meta=(meta : Hash(String, JSON::Any) | Nil) #

Extension metadata.


[View source]
def mime_type : String | Nil #

Optional MIME type of the text content.


[View source]
def mime_type=(mime_type : String | Nil) #

Optional MIME type of the text content.


[View source]
def text : String #

The text content of the resource.


[View source]
def text=(text : String) #

The text content of the resource.


[View source]
def uri : String #

The URI identifying the resource.


[View source]
def uri=(uri : String) #

The URI identifying the resource.


[View source]