class
Amazonite::ApiGateway::Resource
- Amazonite::ApiGateway::Resource
- Reference
- Object
Overview
Represents an API resource.
Included Modules
- JSON::Serializable
Defined in:
api_gateway/resource.crConstructors
- .new(pull : JSON::PullParser)
- .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)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#hash(hasher)
See
Object#hash(hasher) -
#id : String | Nil
The resource's identifier.
-
#id=(id : String | Nil)
The resource's identifier.
-
#parent_id : String | Nil
The parent resource's identifier.
-
#parent_id=(parent_id : String | Nil)
The parent resource's identifier.
-
#path : String | Nil
The full path for this resource.
-
#path=(path : String | Nil)
The full path for this resource.
-
#path_part : String | Nil
The last path segment for this resource.
-
#path_part=(path_part : String | Nil)
The last path segment for this resource.
-
#resource_methods : Hash(String, Method) | Nil
Gets an API resource's method of a given HTTP verb.
-
#resource_methods=(resource_methods : Hash(String, Method) | Nil)
Gets an API resource's method of a given HTTP verb.
- #validate! : Nil
Constructor Detail
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)
#
Instance Method Detail
def ==(other : self)
#
Description copied from class Reference
Returns true if this reference is the same as other. Invokes same?.
Gets an API resource's method of a given HTTP verb.
Gets an API resource's method of a given HTTP verb.