README.md in canoser-0.1.1 vs README.md in canoser-0.1.2
- old
+ new
@@ -148,20 +148,18 @@
```ruby
# serialize an object
obj = AccountResource.new(authentication_key:[...],...)
bytes = obj.serialize
-# deserialize an object form bytes
+# deserialize an object from bytes
obj = AccountResource.deserialize(bytes)
```
-### Get field value form object
-For all fields defined by the "define_field" method, the value of this field of an object can be obtained via [field_name]. such as:
+### Get field value from object
+For all fields defined by the "define_field" method, the value of this field of an object can be obtained via field_name. such as:
```ruby
-obj[:authentication_key]
-#or
-obj["authentication_key"]
+obj.authentication_key
```
## Development