Class: Shortwave::Model::Shout

Inherits:
BaseModel show all
Defined in:
lib/shortwave/model/shout.rb

Overview

A shout message on Last.fm

Attributes

message

The message text

time

The time the message was written

Instance Method Summary collapse

Methods inherited from BaseModel

facade_name, identified_by, inherited, link_to, #session=, sharable, shoutable, taggable

Instance Method Details

#userObject

The user who left the shout message



16
17
18
# File 'lib/shortwave/model/shout.rb', line 16

def user
  @user ||= @session.user.build(:name => author)
end