Module: Ubiquity::MediaSilo::API::V3::Client::Requests

Defined in:
lib/ubiquity/mediasilo/api/v3/client/requests/batch.rb,
lib/ubiquity/mediasilo/api/v3/client/requests/assets_get.rb,
lib/ubiquity/mediasilo/api/v3/client/requests/asset_create.rb,
lib/ubiquity/mediasilo/api/v3/client/requests/asset_delete.rb,
lib/ubiquity/mediasilo/api/v3/client/requests/base_request.rb,
lib/ubiquity/mediasilo/api/v3/client/requests/project_create.rb,
lib/ubiquity/mediasilo/api/v3/client/requests/asset_get_by_id.rb,
lib/ubiquity/mediasilo/api/v3/client/requests/quicklink_share.rb,
lib/ubiquity/mediasilo/api/v3/client/requests/quicklink_create.rb,
lib/ubiquity/mediasilo/api/v3/client/requests/asset_copy_to_folder.rb,
lib/ubiquity/mediasilo/api/v3/client/requests/asset_move_to_folder.rb,
lib/ubiquity/mediasilo/api/v3/client/requests/asset_copy_to_project.rb,
lib/ubiquity/mediasilo/api/v3/client/requests/asset_move_to_project.rb,
lib/ubiquity/mediasilo/api/v3/client/requests/assets_get_by_folder_id.rb,
lib/ubiquity/mediasilo/api/v3/client/requests/assets_get_by_project_id.rb

Defined Under Namespace

Classes: AssetCopyToFolder, AssetCopyToProject, AssetCreate, AssetDelete, AssetGetById, AssetMoveToFolder, AssetMoveToProject, AssetsGet, AssetsGetByFolderId, AssetsGetByProjectId, BaseRequest, Batch, ProjectCreate, QuicklinkCreate, QuicklinkShare

Instance Method Summary collapse

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


51
52
53
54
# File 'lib/ubiquity/mediasilo/api/v3/client/requests/assets_get.rb', line 51

def success?
  response_code = client.http_client.response.code
  (response_code == '404' || response_code.start_with?('2'))
end