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.111 lib/files.com/models/file_action.rb
files.com-1.1.110 lib/files.com/models/file_action.rb
files.com-1.1.109 lib/files.com/models/file_action.rb
files.com-1.1.108 lib/files.com/models/file_action.rb
files.com-1.1.107 lib/files.com/models/file_action.rb
files.com-1.1.106 lib/files.com/models/file_action.rb
files.com-1.1.105 lib/files.com/models/file_action.rb
files.com-1.1.104 lib/files.com/models/file_action.rb
files.com-1.1.103 lib/files.com/models/file_action.rb
files.com-1.1.102 lib/files.com/models/file_action.rb
files.com-1.1.101 lib/files.com/models/file_action.rb
files.com-1.1.100 lib/files.com/models/file_action.rb
files.com-1.1.99 lib/files.com/models/file_action.rb
files.com-1.1.98 lib/files.com/models/file_action.rb
files.com-1.1.97 lib/files.com/models/file_action.rb
files.com-1.1.96 lib/files.com/models/file_action.rb
files.com-1.1.95 lib/files.com/models/file_action.rb
files.com-1.1.94 lib/files.com/models/file_action.rb
files.com-1.1.93 lib/files.com/models/file_action.rb
files.com-1.1.92 lib/files.com/models/file_action.rb