struct Slack::Models::ErrorResponse

Defined in:

slack/models/error_response.cr

Constant Summary

ASSIGNED_TYPES = [error : String, errors : Array(JSON::Any) | ::Nil, ok : Bool = false, response_metadata : JSON::Any | ::Nil] of TypeDeclaration

Constructors

Instance Method Summary

Constructor methods inherited from struct Slack::Model

new(pull : JSON::PullParser) new

Class methods inherited from struct Slack::Model

keyed_json_object(json : String | IO, find_key : String, &)
keyed_json_object(json : String | IO, find_key : String)
keyed_json_object

Constructor Detail

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

[View source]
def self.new(error : String, errors : Array(JSON::Any) | Nil = nil, ok : Bool = false, response_metadata : JSON::Any | Nil = nil) #

Instance Method Detail

def after_initialize #

[View source]
def error : String #

def error=(error : String) #

def errors : Array(JSON::Any) | Nil #

def errors=(errors : Array(JSON::Any) | Nil) #

def ok : Bool #

def ok=(ok : Bool) #

def response_metadata : JSON::Any | Nil #

def response_metadata=(response_metadata : JSON::Any | Nil) #