Sha256: 5ec7b678eeea87040678a10bb2863c68ec50a95756681d233e8e6ec1a7e8e07b

Contents?: true

Size: 440 Bytes

Versions: 3

Compression:

Stored size: 440 Bytes

Contents

class Ey::Core::Client
  class Real
    def get_provider(params={})
      id  = params["id"]
      url = params["url"]

      request(
        :path => "providers/#{id}",
        :url  => url,
      )
    end
  end # Real

  class Mock
    def get_provider(params={})
      response(
        :body => {"provider" => self.find(:providers, resource_identity(params))},
      )
    end
  end # Mock
end # Ey::Core::Client

Version data entries

3 entries across 3 versions & 1 rubygems

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