Sha256: f8a4c6824a3e5a11f2701e74612cf5214614868338e30f764cc9e7f66a43eaa3

Contents?: true

Size: 504 Bytes

Versions: 364

Compression:

Stored size: 504 Bytes

Contents

# frozen_string_literal: true

module Files
  class FileAction
    attr_reader :options, :attributes

    def initialize(attributes = {}, options = {})
      @attributes = attributes || {}
      @options = options || {}
    end

    # string - Status of file operation.
    def status
      @attributes[:status]
    end

    # int64 - If status is pending, this is the id of the FileMigration to check for status updates.
    def file_migration_id
      @attributes[:file_migration_id]
    end
  end
end

Version data entries

364 entries across 364 versions & 1 rubygems

Version Path
files.com-1.1.51 lib/files.com/models/file_action.rb
files.com-1.1.50 lib/files.com/models/file_action.rb
files.com-1.1.49 lib/files.com/models/file_action.rb
files.com-1.1.48 lib/files.com/models/file_action.rb
files.com-1.1.47 lib/files.com/models/file_action.rb
files.com-1.1.46 lib/files.com/models/file_action.rb
files.com-1.1.45 lib/files.com/models/file_action.rb
files.com-1.1.44 lib/files.com/models/file_action.rb
files.com-1.1.43 lib/files.com/models/file_action.rb
files.com-1.1.42 lib/files.com/models/file_action.rb
files.com-1.1.41 lib/files.com/models/file_action.rb
files.com-1.1.40 lib/files.com/models/file_action.rb
files.com-1.1.39 lib/files.com/models/file_action.rb
files.com-1.1.38 lib/files.com/models/file_action.rb
files.com-1.1.37 lib/files.com/models/file_action.rb
files.com-1.1.36 lib/files.com/models/file_action.rb
files.com-1.1.35 lib/files.com/models/file_action.rb
files.com-1.1.34 lib/files.com/models/file_action.rb
files.com-1.1.33 lib/files.com/models/file_action.rb
files.com-1.1.32 lib/files.com/models/file_action.rb