Sha256: 14297f0f1d8e0ea966dfc9a596c5871308387f548fefe2c2595fe8ba0bdbbb73

Contents?: true

Size: 784 Bytes

Versions: 254

Compression:

Stored size: 784 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
  end
end

Version data entries

254 entries across 254 versions & 1 rubygems

Version Path
files.com-1.0.168 lib/files.com/models/preview.rb
files.com-1.0.167 lib/files.com/models/preview.rb
files.com-1.0.166 lib/files.com/models/preview.rb
files.com-1.0.165 lib/files.com/models/preview.rb
files.com-1.0.164 lib/files.com/models/preview.rb
files.com-1.0.163 lib/files.com/models/preview.rb
files.com-1.0.162 lib/files.com/models/preview.rb
files.com-1.0.161 lib/files.com/models/preview.rb
files.com-1.0.160 lib/files.com/models/preview.rb
files.com-1.0.159 lib/files.com/models/preview.rb
files.com-1.0.158 lib/files.com/models/preview.rb
files.com-1.0.157 lib/files.com/models/preview.rb
files.com-1.0.156 lib/files.com/models/preview.rb
files.com-1.0.155 lib/files.com/models/preview.rb
files.com-1.0.154 lib/files.com/models/preview.rb
files.com-1.0.153 lib/files.com/models/preview.rb
files.com-1.0.152 lib/files.com/models/preview.rb
files.com-1.0.151 lib/files.com/models/preview.rb
files.com-1.0.150 lib/files.com/models/preview.rb
files.com-1.0.149 lib/files.com/models/preview.rb