Collaborating Objects Review

Objectives:

  • Test Driven Development

  • Focusing on Object Interfaces

  • Adding an array collection for a has_many on initialization

  • Adding the has_many collection reader

  • Preventing the direct modification of a has_many collection reader.

  • Building your own has_many push interface (the add_story method)

  • Custom Errors

  • Enforcing Type on the has_many push interface

  • Implementing the belongs_to reader

  • Implementing the belongs to writer

  • Enforcing Type on the belongs_to writer

  • Building a has_many through bonus

Video

<iframe width="100%" height="720" src="https://www.youtube.com/embed/iYcQ693LXck?rel=0&showinfo=0" frameborder="0" allowfullscreen></iframe>

MP4

Code

This video is meant to be a review of Object Relationships in Ruby

View Collaborating Objects Review on Learn.co and start learning to code for free.

This video is meant as optional supplemental material to augment the written curriculum. If you feel you already understand Object Relationships in Ruby than you are welcome to skip the video and continue forward. Feel free to come back here if you ever want a review.

Last updated