Sha256: 52b44f09cb4bd073ddb182b30f991200c88b5cec08968edc6359ba27bd1507f9

Contents?: true

Size: 755 Bytes

Versions: 54

Compression:

Stored size: 755 Bytes

Contents

class Ey::Core::Client
  class Real
    def get_application_archives(params={})
      query          = Ey::Core.paging_parameters(params)
      url            = params.delete("url")
      application_id = params["application"]

      request(
        :params => params,
        :path   => "/applications/#{application_id}/archives",
        :query  => query,
        :url    => url
      )
    end
  end # Real

  class Mock
    def get_application_archives(params={})
      extract_url_params!(params)

      headers, archives_pages = search_and_page(params, :application_archives, search_keys: %w[application])

      response(
        :body    => {"application_archives" => archives_pages},
        :headers => headers
      )
    end
  end # Mock
end

Version data entries

54 entries across 54 versions & 3 rubygems

Version Path
ey-core-3.6.0.autoscaling1 lib/ey-core/requests/get_application_archives.rb
ey-core-3.6.4 lib/ey-core/requests/get_application_archives.rb
ey-core-3.6.3 lib/ey-core/requests/get_application_archives.rb
ey-core-3.6.1 lib/ey-core/requests/get_application_archives.rb
groove-ey-core-3.6.3 lib/ey-core/requests/get_application_archives.rb
groove-ey-core-3.6.2 lib/ey-core/requests/get_application_archives.rb
groove-ey-core-3.6.1 lib/ey-core/requests/get_application_archives.rb
ey-core-3.5.0 lib/ey-core/requests/get_application_archives.rb
ey-core-3.4.4 lib/ey-core/requests/get_application_archives.rb
ey-core-3.4.2 lib/ey-core/requests/get_application_archives.rb
ey-core-3.4.1 lib/ey-core/requests/get_application_archives.rb
ey-core-3.4.0 lib/ey-core/requests/get_application_archives.rb
ey-core-3.3.1 lib/ey-core/requests/get_application_archives.rb
ey-core-3.3.0 lib/ey-core/requests/get_application_archives.rb
ey-core-3.2.6 lib/ey-core/requests/get_application_archives.rb
ey-core-3.2.5 lib/ey-core/requests/get_application_archives.rb
ey-core-3.2.4 lib/ey-core/requests/get_application_archives.rb
ey-core-3.2.3 lib/ey-core/requests/get_application_archives.rb
ey-core-3.2.2 lib/ey-core/requests/get_application_archives.rb
ey-core-3.2.1 lib/ey-core/requests/get_application_archives.rb