Sha256: 69e103ed533aef7e9043a1afd51d16285f173f4104ab14fee672c3b8e9656552
Contents?: true
Size: 758 Bytes
Versions: 427
Compression:
Stored size: 758 Bytes
Contents
# frozen_string_literal: true module Files class Preview attr_reader :options, :attributes def initialize(attributes = {}, options = {}) @attributes = attributes || {} @options = options || {} end # int64 - Preview ID def id @attributes[:id] end # string - Preview status. Can be invalid, not_generated, generating, complete, or file_too_large def status @attributes[:status] end # string - Link to download preview def download_uri @attributes[:download_uri] end # string - Preview type. Can be image, pdf, pdf_native, video, or audio def type @attributes[:type] end # string - Preview size def size @attributes[:size] end end end
Version data entries
427 entries across 427 versions & 1 rubygems