Class: Files::FileAction
- Inherits:
-
Object
- Object
- Files::FileAction
- Defined in:
- lib/files.com/models/file_action.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#file_migration_id ⇒ Object
int64 - If status is enqueued, this is the id of the FileMigration to check for status updates.
-
#initialize(attributes = {}, options = {}) ⇒ FileAction
constructor
A new instance of FileAction.
-
#status ⇒ Object
string - Status of file operation.
Constructor Details
#initialize(attributes = {}, options = {}) ⇒ FileAction
Returns a new instance of FileAction.
7 8 9 10 |
# File 'lib/files.com/models/file_action.rb', line 7 def initialize(attributes = {}, = {}) @attributes = attributes || {} @options = || {} end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
5 6 7 |
# File 'lib/files.com/models/file_action.rb', line 5 def attributes @attributes end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/files.com/models/file_action.rb', line 5 def @options end |
Instance Method Details
#file_migration_id ⇒ Object
int64 - If status is enqueued, this is the id of the FileMigration to check for status updates.
18 19 20 |
# File 'lib/files.com/models/file_action.rb', line 18 def file_migration_id @attributes[:file_migration_id] end |
#status ⇒ Object
string - Status of file operation. Possible values: completed, enqueued.
13 14 15 |
# File 'lib/files.com/models/file_action.rb', line 13 def status @attributes[:status] end |