class Awscr::S3::Presigned::FieldCollection
- Awscr::S3::Presigned::FieldCollection
- Reference
- Object
Overview
Holds a collection of PostField
s.
fields = FieldCollection.new
fields.to_a # => [] of PostField
field["test"] = "test"
field.push(PostField.new("Hi", "Hi"))
Included Modules
- Enumerable(Awscr::S3::Presigned::PostField)
Defined in:
awscr-s3/presigned/field_collection.crConstructors
Instance Method Summary
-
#[](key)
Access a key, by name, from the field collection.
-
#each(&)
Iterate over the collection's fields.
-
#push(field : PostField)
Adds a new
PostField
to the collection. -
#to_hash
Convert the collection to a hash in the form of key => value.
Constructor Detail
Instance Method Detail
def [](key)
#
Access a key, by name, from the field collection. Returns the key if found, otherwise returns nil.