class Taleo::Activity

Public Instance Methods

can_download?() click to toggle source
# File lib/taleo/activity.rb, line 18
def can_download?
  relationship_urls.key?('formDownloadUrl')
end
download() click to toggle source
# File lib/taleo/activity.rb, line 22
def download
  unless can_download?
    raise Error.new("Activity #{id} is not available for download")
  end

  client.download(relationship_urls.fetch('formDownloadUrl'))
end
employee_id() click to toggle source
# File lib/taleo/activity.rb, line 14
def employee_id
  data.fetch('activityEmployee')
end
id() click to toggle source
# File lib/taleo/activity.rb, line 10
def id
  data.fetch('id')
end