Sha256: 6560ad3414b49186bd812cc9dd7765f51a155375e6c948b2dfe50e607ac692e9

Contents?: true

Size: 518 Bytes

Versions: 53

Compression:

Stored size: 518 Bytes

Contents

class Ey::Core::Client
  class Real
    def get_addons(params={})
      url   = params.delete("url") or raise "URL needed"
      request(
        :params => params,
        :url    => url,
      )
    end
  end # Real

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

      headers, addons_page = search_and_page(params, :addons, search_keys: %w[account id name])

      response(
        :body    => {"addons" => addons_page},
        :headers => headers
      )
    end
  end # Mock
end

Version data entries

53 entries across 53 versions & 3 rubygems

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