Class: BitPlayer::ParticipantStatus
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- BitPlayer::ParticipantStatus
- Defined in:
- app/models/bit_player/participant_status.rb
Overview
Persistent data representing the Participant’s navigation state.
Instance Method Summary collapse
- #decrement_content_position ⇒ Object
- #increment_content_position ⇒ Object
- #increment_provider_position ⇒ Object
- #initialize_context(name) ⇒ Object
Instance Method Details
#decrement_content_position ⇒ Object
15 16 17 |
# File 'app/models/bit_player/participant_status.rb', line 15 def decrement_content_position update(content_position: content_position - 1) end |
#increment_content_position ⇒ Object
19 20 21 |
# File 'app/models/bit_player/participant_status.rb', line 19 def increment_content_position update(content_position: content_position + 1) end |
#increment_provider_position ⇒ Object
23 24 25 26 27 28 |
# File 'app/models/bit_player/participant_status.rb', line 23 def increment_provider_position update( provider_position: provider_position + 1, content_position: 1 ) end |
#initialize_context(name) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'app/models/bit_player/participant_status.rb', line 6 def initialize_context(name) update( context: name, module_position: 1, provider_position: 1, content_position: 1 ) end |