diff options
Diffstat (limited to 'src/movie.coffee')
| -rw-r--r-- | src/movie.coffee | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/movie.coffee b/src/movie.coffee index bf2e77d..9d22e85 100644 --- a/src/movie.coffee +++ b/src/movie.coffee @@ -6,3 +6,14 @@ module.exports = class Movie equals: (other) -> @title == other["title"] + + @by: (studio) -> + console.log(studio) + new StudioSpecification(studio) + +class StudioSpecification + constructor: (studio) -> + @studio = studio + + matches: (movie) -> + @studio == movie.studio |
