Giter Club home page Giter Club logo

ruby-boating-school-nyc-web-080618's Introduction

mod1-code-review-boating-school

Welcome to Boating School! A Spongebob activity that simulates a system that tracks Boating Tests. We have three models - 'Student', 'Instructor', and 'BoatingTest'.

Associations:

alt text

'Student' class:

  • should initialize with first_name
  • Student.all should return all of the student instances
  • Student#add_boating_test should initialize a new boating test with a student (Object), a boating test name (String), a boating test status (String), and an Instructor (Object)
  • Student.find_student will take in a student first name and output that student

'BoatingTest' class:

  • should initialize with student (Object), a boating test name (String), a boating test status (String), and an Instructor (Object)
  • BoatingTest.all returns an array of all boating tests

'Instructor' class:

  • init with name
  • return all instructors
  • Instructor.pass_student should take in a student name and test name and return status failed
  • Instructor.fail_student should take in a student name and test name and return status failed
  • Instructor.student_grade_percentage should take in a student first name and output the percentage of tests that they have passed

Run ruby tools/console.rb in console to seed

Here is some example seed data:

spongebob= Student.new("Spongebob") patrick= Student.new("Patrick")

puff= Instructor.new("Ms.Puff") krabs= Instructor.new("Mr.Krabs")

test1= spongebob.add_boating_test("Don't Crash 101", "pending", puff)

ruby-boating-school-nyc-web-080618's People

Contributors

mmacdonald1 avatar realandrewcohn avatar morgvanny 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.