class Awscr::S3::Presigned::FieldCollection

Overview

Holds a collection of PostFields.

fields = FieldCollection.new
fields.to_a # => [] of PostField
field["test"] = "test"
field.push(PostField.new("Hi", "Hi"))

Included Modules

Defined in:

awscr-s3/presigned/field_collection.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def [](key) #

Access a key, by name, from the field collection. Returns the key if found, otherwise returns nil.


[View source]
def each(&) #

Iterate over the collection's fields.


[View source]
def push(field : PostField) #

Adds a new PostField to the collection.


[View source]
def to_hash #

Convert the collection to a hash in the form of key => value.


[View source]