Sha256: e6a045028cc6bbb32a9c7d65b1f65d0b9858f598dbebb1690d3a30b63bc37b55

Contents?: true

Size: 695 Bytes

Versions: 3

Compression:

Stored size: 695 Bytes

Contents

class Ey::Core::Client
  class Real
    def get_blueprints(params={})
      query = Ey::Core.paging_parameters(params)
      url   = params.delete("url")

      request(
        :path   => "/blueprints",
        :params => params,
        :query  => query,
        :url    => url,
      )
    end
  end

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

      headers, blueprints_page = search_and_page(params, :blueprints, search_keys: %w[account environment environment_id name])

      response(
        :body    => {"blueprints" => blueprints_page},
        :status  => 200,
        :headers => headers,
      )
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ey-core-3.6.6 lib/ey-core/requests/get_blueprints.rb
ey-core-3.4.5 lib/ey-core/requests/get_blueprints.rb
ey-core-3.6.5 lib/ey-core/requests/get_blueprints.rb