Sha256: 8f0d50ce4b82d80a4cb8834b612f09c453c7187d4fd72f4a0dd882444a840d35
Contents?: true
Size: 961 Bytes
Versions: 4
Compression:
Stored size: 961 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 status. Can be invalid, not_generated, generating, complete, or file_too_large def type @attributes[:type] end # int64 - Preview size def size @attributes[:size] end # string - Preview status message. Addtional context from the preview generation process about the status def status_message @attributes[:status_message] end end end
Version data entries
4 entries across 4 versions & 1 rubygems