Sha256: d42ee41e422268d8fdb439b3287986541aee69e9c8d27a9ee443852706f83871

Contents?: true

Size: 376 Bytes

Versions: 2

Compression:

Stored size: 376 Bytes

Contents

require "sync_service"

class Application < SyncService::Base
  @service_name = "mobme.infrastructure.rpc.test"

  def server_timestamp
    Time.now.to_i
  end

  def buggy_method
    raise MobME::Infrastructure::RPC::Error, "This exception is expected."
  end

  def method_missing(name, *args)
    logger.err "[SERVER] received method #{name} with #{args.inspect}"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sync_service-0.1.0 examples/application.rb
sync_service-0.0.8 examples/application.rb