LasLabs/python-helpscout

View on GitHub
helpscout/models/attachment.py

Summary

Maintainability
A
0 mins
Test Coverage
# -*- coding: utf-8 -*-
# Copyright 2017-TODAY LasLabs Inc.
# License MIT (https://opensource.org/licenses/MIT).

import properties

from .attachment_data import AttachmentData


class Attachment(AttachmentData):

    hash = properties.String(
        'Unique hash.',
    )
    mime_type = properties.String(
        'Mime Type',
    )
    file_name = properties.String(
        'File Name',
        required=True,
    )
    size = properties.Integer(
        'Size of the attachment in bytes.',
    )
    width = properties.Integer(
        'Image width',
    )
    height = properties.Integer(
        'Image height',
    )
    url = properties.String(
        'Public-facing url where attachment can be downloaded.',
    )