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.31 lib/files.com/models/file_action.rb
files.com-1.1.30 lib/files.com/models/file_action.rb
files.com-1.1.29 lib/files.com/models/file_action.rb
files.com-1.1.28 lib/files.com/models/file_action.rb
files.com-1.1.27 lib/files.com/models/file_action.rb
files.com-1.1.26 lib/files.com/models/file_action.rb
files.com-1.1.25 lib/files.com/models/file_action.rb
files.com-1.1.24 lib/files.com/models/file_action.rb
files.com-1.1.23 lib/files.com/models/file_action.rb
files.com-1.1.22 lib/files.com/models/file_action.rb
files.com-1.1.21 lib/files.com/models/file_action.rb
files.com-1.1.20 lib/files.com/models/file_action.rb
files.com-1.1.19 lib/files.com/models/file_action.rb
files.com-1.1.18 lib/files.com/models/file_action.rb
files.com-1.1.17 lib/files.com/models/file_action.rb
files.com-1.1.16 lib/files.com/models/file_action.rb
files.com-1.1.15 lib/files.com/models/file_action.rb
files.com-1.1.14 lib/files.com/models/file_action.rb
files.com-1.1.13 lib/files.com/models/file_action.rb
files.com-1.1.12 lib/files.com/models/file_action.rb