Sha256: b3decfd509d88d2277df471c60bf844645d6507693dbe8a106ff8ec72ecb71d2

Contents?: true

Size: 1012 Bytes

Versions: 5

Compression:

Stored size: 1012 Bytes

Contents

module Fog
  module Terremark
    class Real

      require 'fog/terremark/parsers/get_tasks_list'

      # Get list of tasks
      #
      # ==== Parameters
      # * tasks_list_id<~Integer> - Id of tasks lists to view
      #
      # ==== Returns
      # * response<~Excon::Response>:
      #   * body<~Hash>:
      #     * 'CatalogItems'<~Array>
      #       * 'href'<~String> - linke to item
      #       * 'name'<~String> - name of item
      #       * 'type'<~String> - type of item
      #     * 'description'<~String> - Description of catalog
      #     * 'name'<~String> - Name of catalog
      def get_tasks_list(tasks_list_id)
        request(
          :expects  => 200,
          :method   => 'GET',
          :parser   => Fog::Parsers::Terremark::GetTasksList.new,
          :path     => "tasksList/#{tasks_list_id}"
        )
      end

    end

    class Mock

      def get_tasks_list(tasks_list_id)
        raise MockNotImplemented.new("Contributions welcome!")
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fog-0.0.72 lib/fog/terremark/requests/get_tasks_list.rb
fog-0.0.71 lib/fog/terremark/requests/get_tasks_list.rb
fog-0.0.70 lib/fog/terremark/requests/get_tasks_list.rb
fog-0.0.69 lib/fog/terremark/requests/get_tasks_list.rb
fog-0.0.68 lib/fog/terremark/requests/get_tasks_list.rb