Sha256: 43ce5ab157236b3772cae8cebafab2f4d67d29f715e1b15334ee40b337436acf

Contents?: true

Size: 651 Bytes

Versions: 53

Compression:

Stored size: 651 Bytes

Contents

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

      request(
        :params => params,
        :query  => query,
        :path   => "/components",
        :url    => url,
      )
    end
  end # Real

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

      headers, components_page = search_and_page(params, :components, search_keys: %w[name id uri])

      response(
        :body    => {"components" => components_page},
        :status  => 200,
        :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_components.rb
ey-core-3.6.3 lib/ey-core/requests/get_components.rb
ey-core-3.6.1 lib/ey-core/requests/get_components.rb
groove-ey-core-3.6.3 lib/ey-core/requests/get_components.rb
groove-ey-core-3.6.2 lib/ey-core/requests/get_components.rb
groove-ey-core-3.6.1 lib/ey-core/requests/get_components.rb
ey-core-3.5.0 lib/ey-core/requests/get_components.rb
ey-core-3.4.4 lib/ey-core/requests/get_components.rb
ey-core-3.4.2 lib/ey-core/requests/get_components.rb
ey-core-3.4.1 lib/ey-core/requests/get_components.rb
ey-core-3.4.0 lib/ey-core/requests/get_components.rb
ey-core-3.3.1 lib/ey-core/requests/get_components.rb
ey-core-3.3.0 lib/ey-core/requests/get_components.rb
ey-core-3.2.6 lib/ey-core/requests/get_components.rb
ey-core-3.2.5 lib/ey-core/requests/get_components.rb
ey-core-3.2.4 lib/ey-core/requests/get_components.rb
ey-core-3.2.3 lib/ey-core/requests/get_components.rb
ey-core-3.2.2 lib/ey-core/requests/get_components.rb
ey-core-3.2.1 lib/ey-core/requests/get_components.rb
ey-core-3.2.0 lib/ey-core/requests/get_components.rb