Class: Turntabler::Snag
Overview
Represents a song that was snagged
Instance Attribute Summary collapse
-
#song ⇒ Turntabler::Song
readonly
The song that was snagged.
-
#user ⇒ Turntabler::User
readonly
The user who snagged the song.
Attributes inherited from Resource
Method Summary
Methods inherited from Resource
#==, attribute, #attributes=, #hash, #initialize, #load, #loaded?, #pretty_print, #pretty_print_instance_variables
Methods included from Assertions
#assert_valid_keys, #assert_valid_values
Methods included from DigestHelpers
Constructor Details
This class inherits a constructor from Turntabler::Resource
Instance Attribute Details
#song ⇒ Turntabler::Song (readonly)
The song that was snagged
14 |
# File 'lib/turntabler/snag.rb', line 14 attribute :song |
#user ⇒ Turntabler::User (readonly)
The user who snagged the song
8 9 10 |
# File 'lib/turntabler/snag.rb', line 8 attribute :user, :userid do |value| room.build_user(:_id => value) end |