Sha256: bfe893839f1c730d7ad44ae75f33bc444256d9fcc252bab10da6863de6d28d69

Contents?: true

Size: 458 Bytes

Versions: 3

Compression:

Stored size: 458 Bytes

Contents

class Ey::Core::Client
  class Real
    def get_server_event(params={})
      url   = params.delete("url")
      id    = params.delete("id")

      request(
        :path => "/server-events/#{id}",
        :url  => url,
      )
    end
  end # Real
  class Mock
    def get_server_event(params={})
      response(
        :body => {"server_event" => self.find(:server_events, resource_identity(params))},
      )
    end
  end # Mock
end

Version data entries

3 entries across 3 versions & 1 rubygems

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