Sha256: d0944ab97218828dc6858fd6b329cb886ca09499f2c2545557c19fae70e33418

Contents?: true

Size: 982 Bytes

Versions: 4

Compression:

Stored size: 982 Bytes

Contents

module Fog
  module Terremark
    class Real

      # 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 = default_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

4 entries across 4 versions & 1 rubygems

Version Path
fog-0.0.77 lib/fog/terremark/requests/get_tasks_list.rb
fog-0.0.76 lib/fog/terremark/requests/get_tasks_list.rb
fog-0.0.75 lib/fog/terremark/requests/get_tasks_list.rb
fog-0.0.74 lib/fog/terremark/requests/get_tasks_list.rb