Sha256: 928b8c89e0c34f12fc97fe9787e16dcfb56ba4446974aaeb7145e830d9cf1dd8

Contents?: true

Size: 505 Bytes

Versions: 73

Compression:

Stored size: 505 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 File Migration to check for status updates.
    def file_migration_id
      @attributes[:file_migration_id]
    end
  end
end

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
files.com-1.1.184 lib/files.com/models/file_action.rb
files.com-1.1.183 lib/files.com/models/file_action.rb
files.com-1.1.182 lib/files.com/models/file_action.rb
files.com-1.1.181 lib/files.com/models/file_action.rb
files.com-1.1.180 lib/files.com/models/file_action.rb
files.com-1.1.179 lib/files.com/models/file_action.rb
files.com-1.1.178 lib/files.com/models/file_action.rb
files.com-1.1.177 lib/files.com/models/file_action.rb
files.com-1.1.176 lib/files.com/models/file_action.rb
files.com-1.1.175 lib/files.com/models/file_action.rb
files.com-1.1.174 lib/files.com/models/file_action.rb
files.com-1.1.173 lib/files.com/models/file_action.rb
files.com-1.1.172 lib/files.com/models/file_action.rb
files.com-1.1.171 lib/files.com/models/file_action.rb
files.com-1.1.170 lib/files.com/models/file_action.rb
files.com-1.1.169 lib/files.com/models/file_action.rb
files.com-1.1.168 lib/files.com/models/file_action.rb
files.com-1.1.167 lib/files.com/models/file_action.rb
files.com-1.1.166 lib/files.com/models/file_action.rb
files.com-1.1.165 lib/files.com/models/file_action.rb