Method: LockstepSdk::AttachmentModel#as_json

Defined in:
lib/lockstep_sdk/models/attachment_model.rb

#as_json(options = {}) ⇒ object

Returns This object as a JSON key-value structure.

Returns:

  • (object)

    This object as a JSON key-value structure



95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# File 'lib/lockstep_sdk/models/attachment_model.rb', line 95

def as_json(options={})
    {
        'attachmentId' => @attachment_id,
        'groupKey' => @group_key,
        'tableKey' => @table_key,
        'objectKey' => @object_key,
        'fileName' => @file_name,
        'fileExt' => @file_ext,
        'isArchived' => @is_archived,
        'erpKey' => @erp_key,
        'appEnrollmentId' => @app_enrollment_id,
        'created' => @created,
        'createdUserId' => @created_user_id,
        'attachmentType' => @attachment_type,
    }
end