Giter VIP home page Giter VIP logo

events-oo-practice's Introduction

EVENTS, GUESTS AND INVITATIONS

We're building a party planning application! A Guest has many Events through Invitations. A Event can have many Guests through Invitations. A Invitation belongs to a Event and a Guest.

Deliverables

Implement all of the methods described below

Guest

  • Guest.all
    • returns all of the guests
  • Guest#invitations
    • returns an array of Invitation instances associated with this instance of Guest.
  • Guest#events
    • returns an array of Event instances that the Guest is planning on going to.
  • Guest#indoor_events
    • returns an array of Event instances that the Guest is planning on going to that are inside

Invitation

A Invitation object represents that an individual guest has plans to visit a particular event.

  • Invitation.all
    • returns an array of all Invitation instances
  • Invitation#guest
    • returns the guest associated with this Invitation
  • Invitation#event
    • returns the event associated with this Invitation

Event

  • Event.all
    • returns an array of all Event
  • Event#invitations
    • returns an array of all the Invitations to this event
  • Event#guests
    • returns an array of all of the Guests with invitations to visit this event
  • Event#invite(guest)
    • takes a guest as an argument and invites them to the associated Event
  • Event#all_guests_names
    • returns an array of the names of every guest attending this Event

events-oo-practice's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.