Sha256: fdd8f192e544460cb17774d17d13f2eafd075ac1f1f68d1fb839e9660e0ed1e6

Contents?: true

Size: 430 Bytes

Versions: 15

Compression:

Stored size: 430 Bytes

Contents

class Ey::Core::Client
  class Real
    def request_callback(id)
      request(
        :path   => "/requests/#{id}/callback",
        :method => :post
      )
    end
  end

  class Mock
    def request_callback(id)
      request_id = self.uuid

      request = find(:requests, id).dup
      request.delete("resource")

      response(
        :body   => {"request" => request},
        :status => 200,
      )
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
ey-pro-cli-0.0.17 lib/vendor/core/ey-core/requests/request_callback.rb
ey-pro-cli-0.0.16 lib/vendor/core/ey-core/requests/request_callback.rb
ey-pro-cli-0.0.15 lib/vendor/core/ey-core/requests/request_callback.rb
ey-pro-cli-0.0.14 lib/vendor/core/ey-core/requests/request_callback.rb
ey-pro-cli-0.0.13 lib/vendor/core/ey-core/requests/request_callback.rb
ey-pro-cli-0.0.12 lib/vendor/core/ey-core/requests/request_callback.rb
ey-pro-cli-0.0.11 lib/vendor/core/ey-core/requests/request_callback.rb
ey-pro-cli-0.0.10 lib/vendor/core/ey-core/requests/request_callback.rb
ey-pro-cli-0.0.9 lib/vendor/core/ey-core/requests/request_callback.rb
ey-pro-cli-0.0.8 lib/vendor/core/ey-core/requests/request_callback.rb
ey-pro-cli-0.0.7 lib/vendor/core/ey-core/requests/request_callback.rb
ey-pro-cli-0.0.6 lib/vendor/core/ey-core/requests/request_callback.rb
ey-pro-cli-0.0.5 lib/vendor/core/ey-core/requests/request_callback.rb
ey-pro-cli-0.0.4 lib/vendor/core/ey-core/requests/request_callback.rb
ey-pro-cli-0.0.3 lib/vendor/core/ey-core/requests/request_callback.rb