This is a good place to use a ```case/when``` block instead of ```if/else```

Since ```posted_at``` and ```title``` are always going to be the same, I would set those in one place, after this big block of switching.

```ruby
p.title     = post["title"]
p.posted_at = post["date"]

p.save!
```