README.md in ruby_skynet-0.8.0 vs README.md in ruby_skynet-0.8.1
- old
+ new
@@ -39,19 +39,20 @@
# Start the server
RubySkynet::Server.start
```
Client to call the above Service
+
```ruby
require 'rubygems'
require 'ruby_skynet'
-class EchoService
- include RubySkynet::Base
+class Echo < RubySkynet::Client
+ self.skynet_name = "EchoService"
end
-client = EchoService.new
+client = Echo.new
p client.echo(:hello => 'world')
```
### Logging
@@ -60,17 +61,17 @@
```ruby
require 'rubygems'
require 'ruby_skynet'
-SemanticLogger::Logger.default_level = :trace
-SemanticLogger::Logger.appenders << SemanticLogger::Appender::File.new('skynet.log')
+SemanticLogger.default_level = :info
+SemanticLogger.add_appender('skynet.log')
-class EchoService
- include RubySkynet::Base
+class Echo < RubySkynet::Client
+ self.skynet_name = "EchoService"
end
-client = EchoService.new
+client = Echo.new
p client.echo(:hello => 'world')
```
### Architecture