Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Ersin Akinci committed Jun 16, 2017
1 parent 8994a61 commit 3257649
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ end
person.profile['first_name'] = 'Jane'
person.profile['last_name'] = nil
person.valid? # true
person.export_fleece # { profile: { first_name: 'Jane', last_name: nil, zip_code: '90210' } }
person.export_fleece # { profile: { 'first_name' => 'Jane', 'last_name' => nil, 'zip_code' => '90210' } }

person.profile.delete 'first_name'
person.valid? # false
Expand Down Expand Up @@ -105,7 +105,7 @@ define_schemas :profile, {

person.profile['zip_code'] = nil
person.valid? # true
person.export_fleece # { profile: { zip_code: '90210' } }
person.export_fleece # { profile: { 'zip_code' => '90210' } }
person.profile['zip_code'] # nil
```

Expand All @@ -116,7 +116,7 @@ define_schemas :profile, {
zip_code: { type: :string, default: -> record { record.closest_location.zip_code } }
}

person.export_fleece # { profile: { zip_code: '94131' } }
person.export_fleece # { profile: { 'zip_code' => '94131' } }
```

### Getters
Expand Down

0 comments on commit 3257649

Please sign in to comment.