struct ACP::Protocol::SelectedPermissionOutcome

Overview

The outcome when the user selected one of the provided options.

Included Modules

Defined in:

acp/protocol/types.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(option_id : String, meta : Hash(String, JSON::Any) | Nil = nil) #

[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 option_id : String #

The ID of the option the user selected (required).


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

The ID of the option the user selected (required).


[View source]
def outcome : String #

Must be "selected".


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

Must be "selected".


[View source]