struct
ACP::Protocol::Annotations
- ACP::Protocol::Annotations
- Struct
- Value
- Object
Overview
Optional annotations for content blocks. The client can use annotations to inform how objects are used or displayed.
Included Modules
- JSON::Serializable
Defined in:
acp/protocol/content_block.crConstructors
- .new(pull : JSON::PullParser)
- .new(audience : Array(String) | Nil = nil, last_modified : String | Nil = nil, priority : Float64 | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil)
Instance Method Summary
-
#audience : Array(String) | Nil
Describes who the intended audience of this content is.
-
#audience=(audience : Array(String) | Nil)
Describes who the intended audience of this content is.
-
#last_modified : String | Nil
An ISO 8601 datetime string indicating when the content was last modified.
-
#last_modified=(last_modified : String | Nil)
An ISO 8601 datetime string indicating when the content was last modified.
-
#meta : Hash(String, JSON::Any) | Nil
Extension metadata.
-
#meta=(meta : Hash(String, JSON::Any) | Nil)
Extension metadata.
-
#priority : Float64 | Nil
A priority hint for the content (0.0 to 1.0).
-
#priority=(priority : Float64 | Nil)
A priority hint for the content (0.0 to 1.0).
Constructor Detail
def self.new(audience : Array(String) | Nil = nil, last_modified : String | Nil = nil, priority : Float64 | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil)
#
Instance Method Detail
def audience=(audience : Array(String) | Nil)
#
Describes who the intended audience of this content is.
def last_modified : String | Nil
#
An ISO 8601 datetime string indicating when the content was last modified.
def last_modified=(last_modified : String | Nil)
#
An ISO 8601 datetime string indicating when the content was last modified.