Skip to main content
Kinetic Community

Attachment Field Value

This class represents an attachment field value.  It contains data about the attachment including the file name, size, and content.

AttachmentFieldValue.new

ArsModels::FieldValues::AttachmentFieldValue.new() is the method used to instantiate a new AttachmentFieldValue instance.  In general you will not need to create AttachmentFieldValue instances, they will simply be returned to you when reading attachment field values.  Below are the options for this function.

 

:name The file name of the attachment value
:size The content size of the attachment value
:content The content of the attachment value
:base64_content The base64 encoded content of the attachment value

Instance Methods

name Returns the file name of the attachment value
name= Sets the file name of the attachment value
size Returns the content size of the attachment value
size= Sets the content size of the attachment value
content Returns the content of the attachment value
content= Sets the content of the attachment value
base64_content Returns the base64 encoded content of the attachment value
base64_content= Sets the base64 encoded content of the attachment value
to_s Returns a specially formatted string representing the AttachmentFieldValue instance including the file name and file size.
inspect Returns a specially formatted string representing the AttachmentFieldValue instance including the file name and file size.