class Amazonite::ApiGateway::Resource

Overview

Represents an API resource.

Included Modules

Defined in:

api_gateway/resource.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(id : String | Nil = nil, parent_id : String | Nil = nil, path_part : String | Nil = nil, path : String | Nil = nil, resource_methods : Hash(String, Method) | Nil = nil) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def id : String | Nil #

The resource's identifier.


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

The resource's identifier.


[View source]
def parent_id : String | Nil #

The parent resource's identifier.


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

The parent resource's identifier.


[View source]
def path : String | Nil #

The full path for this resource.


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

The full path for this resource.


[View source]
def path_part : String | Nil #

The last path segment for this resource.


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

The last path segment for this resource.


[View source]
def resource_methods : Hash(String, Method) | Nil #

Gets an API resource's method of a given HTTP verb.


[View source]
def resource_methods=(resource_methods : Hash(String, Method) | Nil) #

Gets an API resource's method of a given HTTP verb.


[View source]
def validate! : Nil #

[View source]