Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event Model #2

Closed
wilbertom opened this issue Nov 27, 2014 · 6 comments
Closed

Event Model #2

wilbertom opened this issue Nov 27, 2014 · 6 comments

Comments

@wilbertom
Copy link
Member

No description provided.

@bepetersn
Copy link
Member

Event should have an add_session method, where it adds the session, and also adds the number of hours of the session to the user's hours attribute.

@wilbertom wilbertom added ready and removed ready labels Dec 7, 2014
@wilbertom
Copy link
Member Author

Event:

id :: Id
name :: String
start :: DateTime
end :: EndTime
location :: Location
Notes :: String

Some psudo code for sessions. I don't think they will work exactly like this though.

add_session(session)
add_attendance = add_session
User.attent = lambda self: self.current_session.event.add_session(self.session)

@wilbertom
Copy link
Member Author

participants :: [User], Property?
total_service_hours :: Float, Property?

@wilbertom
Copy link
Member Author

This model could use some testing.

@wilbertom
Copy link
Member Author

type :: String | EventType

@wilbertom
Copy link
Member Author

See #15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants