You’re an Object, Harry!

Populating the Universe

def get_data( route )
url = @url_base + route + "?key=" + @api_key
uri = URI( url )
response = Net::HTTP.get( uri )
arr = JSON.parse( response )

Uh Oh, Something Broke

Scraping to the Rescue

Object Relationships

My Preliminary Object Relationships Diagram — Houses have many Wizards, Wizards own many Spells

Organizing Code

class Cli
include Clistrict::InstanceMethods
include Navigation::InstanceMethods
include Commands::InstanceMethods
attr_accessor :name, :house, :info, :commands, :history def initialize
@history = []

Hogwarts Social Network

Hogwarts Social Network CLI Walkthrough Demo




Software Engineer | React | Redux | Ruby | Rails

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Chapter 2 Give Purpose with Missions

Cherry-pick in Git

Building a Ruby Gem From Scratch

Hashflow “invades” the Galaxy with The Hashbot

HTML Explained in 1 minute

Comprehensive Guide On Epicor Eclipse ERP In 9 Quick Facts

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store


Software Engineer | React | Redux | Ruby | Rails

More from Medium

Turbocharge Your Organization With Performance Driver Mentality

Tunes & Friends

Jest: Does It Test Funny to You?

Guitar Effects, Streaming Music, and ReactJS. A project for Flatiron School.