README.md in piko_model-1.0.0 vs README.md in piko_model-1.0.1
- old
+ new
@@ -1,9 +1,10 @@
# PikoModel
[![Gem Version](https://badge.fury.io/rb/piko_model.svg)](http://badge.fury.io/rb/piko_model)
[![Code Climate](https://codeclimate.com/github/skopciewski/piko_model/badges/gpa.svg)](https://codeclimate.com/github/skopciewski/piko_model)
+[![Dependency Status](https://gemnasium.com/badges/github.com/skopciewski/piko_model.svg)](https://gemnasium.com/github.com/skopciewski/piko_model)
Simple model which can be initialized from Hash. It is possible to define default values and check if all reqired fields are set.
## Installation
@@ -30,10 +31,10 @@
end
foo = Config.new
foo.valid? #=> false
foo.missing_fields #=> ["a"]
-foo['b.c"] #=> true
+foo["b.c"] #=> true
bar = Config.new a: "value", "b.c": false
bar.valid? #=> true
bar.fetch("a") #=> "value"