Method: CloudFS::Session#action_history

Defined in:
lib/cloudfs/session.rb

#action_history(start_version: -10,, stop_version: nil) ⇒ Array<Hash>

Action history lists history of file, folder, and share actions

default -10. It can be negative in order to get most recent actions.
RestAdapter::Errors::OperationNotAllowedError]

Parameters:

  • start_version (Fixnum) (defaults to: -10,)

    version number to start listing historical actions from,

  • stop_version (Fixnum) (defaults to: nil)

    version number to stop listing historical actions from (non-inclusive)

Returns:

  • (Array<Hash>)

    action history items

Raises:



243
244
245
246
# File 'lib/cloudfs/session.rb', line 243

def action_history(start_version: -10, stop_version: nil)
  validate_session
  @rest_adapter.list_history(start: start_version, stop: stop_version)
end