README.markdown in blobject-0.4.0 vs README.markdown in blobject-0.4.1

- old
+ new

@@ -1,8 +1,8 @@ -![](https://github.com/sjltaylor/blobject/raw/master/assets/blobject.png) +![](https://github.com/sjltaylor/blobject/raw/master/assets/blobject.png) -Rdocs: [http://sjltaylor.github.com/blobject](http://sjltaylor.github.com/blobject) +RDocs: [http://sjltaylor.github.com/blobject](http://sjltaylor.github.com/blobject) ## About Consider the following json sample... @@ -34,11 +34,11 @@ Blobject let's you do this (complete code listing, no predefined data structures): data = Blobject.from_json HTTParty.get('https://raw.github.com/sjltaylor/blobject/master/spec/sample_data/sample3.json') - + full_name = "#{data.calibration.staff.name.first}#{data.calibration.staff.name.middle_initial}#{data.calibration.staff.name.second}".capitalize => "Calibrator" last_reading = data.readings.last.value if data.readings? => 14232 @@ -133,11 +133,11 @@ third_party_api: secret_key: 'S3CR3T' endpoint: 'http://services.thirdparty.net/api' With a hash, usage looks like this: - + CONFIG[:third_party_api][:endpoint] With a Blobject, usage looks like this: CONFIG.third_party_api.endpoint @@ -166,11 +166,11 @@ Blobjects can be used to easily build complex payloads. person = Blobject.new person.name = first: 'David', last: 'Platt' - + person.address.tap do |address| address.street = "..." address.city = "..." end @@ -266,6 +266,5 @@ Copyright (c) 2012 Sam Taylor. See LICENSE.txt for further details. ![](https://github.com/sjltaylor/blobject/raw/master/assets/blob_defn.png) -