Why not:

```ruby
def raw_body
  @raw_body ||= message_object.nil? ? push_message : pull_message
end
```