Sha256: f6560be62994d0e49a8690f97eac338077abeea5fa4592c25b90c7579e3c1ed9

Contents?: true

Size: 637 Bytes

Versions: 38

Compression:

Stored size: 637 Bytes

Contents

require 'fog/core/collection'
require 'fog/vcloud_director/models/compute/task'

module Fog
  module Compute
    class VcloudDirector

      class Tasks < Collection
        model Fog::Compute::VcloudDirector::Task

        attribute :organization

        def get(id)
          data = service.get_task(id).body
          return nil unless data
          data[:id] = data[:href].split('/').last
          new(data)
        end

        private

        def item_list
          data = service.get_task_list(organization.id).body
          data[:Task].each {|task| service.add_id_from_href!(task)}
        end

      end
    end
  end
end

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
fog-1.21.0 lib/fog/vcloud_director/models/compute/tasks.rb
fog-maestrodev-1.20.0.20140305101839 lib/fog/vcloud_director/models/compute/tasks.rb
fog-maestrodev-1.20.0.20140305101305 lib/fog/vcloud_director/models/compute/tasks.rb
fog-maestrodev-1.19.0.20140212012611 lib/fog/vcloud_director/models/compute/tasks.rb
fog-1.20.0 lib/fog/vcloud_director/models/compute/tasks.rb
fog-maestrodev-1.19.0.20140110004459 lib/fog/vcloud_director/models/compute/tasks.rb
fog-maestrodev-1.19.0.20140110003812 lib/fog/vcloud_director/models/compute/tasks.rb
fog-maestrodev-1.19.0.20140109202555 lib/fog/vcloud_director/models/compute/tasks.rb
fog-maestrodev-1.19.0.20140107192102 lib/fog/vcloud_director/models/compute/tasks.rb
fog-maestrodev-1.19.0.20140107142106 lib/fog/vcloud_director/models/compute/tasks.rb
fog-maestrodev-1.19.0.20131219203941 lib/fog/vcloud_director/models/compute/tasks.rb
fog-maestrodev-1.18.0.20131219193542 lib/fog/vcloud_director/models/compute/tasks.rb
fog-1.19.0 lib/fog/vcloud_director/models/compute/tasks.rb
fog-maestrodev-1.18.0.20131219033443 lib/fog/vcloud_director/models/compute/tasks.rb
fog-maestrodev-1.18.0.20131219032002 lib/fog/vcloud_director/models/compute/tasks.rb
fog-maestrodev-1.18.0.20131219030716 lib/fog/vcloud_director/models/compute/tasks.rb
fog-maestrodev-1.18.0.20131219022322 lib/fog/vcloud_director/models/compute/tasks.rb
fog-maestrodev-1.18.0.20131218202447 lib/fog/vcloud_director/models/compute/tasks.rb
fog-maestrodev-1.18.0.20131209091424 lib/fog/vcloud_director/models/compute/tasks.rb
fog-maestrodev-1.18.0.20131209090811 lib/fog/vcloud_director/models/compute/tasks.rb