Class: LWS::Presence::Notification
- Inherits:
-
Generic::Model
- Object
- Spyke::Base
- Generic::Model
- LWS::Presence::Notification
- Defined in:
- lib/lws/apps/presence.rb
Overview
Note:
This model can only be created via LWS, never retrieved, deleted or updated.
The notification class
Instance Attribute Summary collapse
-
#location ⇒ Location
The location the notification is for.
-
#location_id ⇒ Fixnum
The ID of the location the notification is for.
-
#receiver ⇒ Person
The receiver of the notification.
-
#receiver_id ⇒ Integer
The ID of the receiver of the notification.
-
#sender ⇒ Person
The sender of the notification.
-
#sender_id ⇒ Integer
The ID of the receiver of the nofication.
Attributes inherited from Generic::Model
#created_at, #id, #updated_at, #url, #url_html
Method Summary
Methods inherited from Generic::Model
#dig, #reload, #rollback, #save
Instance Attribute Details
#location ⇒ Location
Returns the location the notification is for.
331 |
# File 'lib/lws/apps/presence.rb', line 331 belongs_to :location, uri: "locations/:id" |
#location_id ⇒ Fixnum
Returns the ID of the location the notification is for.
335 |
# File 'lib/lws/apps/presence.rb', line 335 attribute :location_id |
#receiver ⇒ Person
Returns the receiver of the notification.
339 |
# File 'lib/lws/apps/presence.rb', line 339 belongs_to :receiver |
#receiver_id ⇒ Integer
Returns the ID of the receiver of the notification.
343 |
# File 'lib/lws/apps/presence.rb', line 343 belongs_to :receiver_id |
#sender ⇒ Person
Returns the sender of the notification.
347 |
# File 'lib/lws/apps/presence.rb', line 347 belongs_to :sender |
#sender_id ⇒ Integer
Returns the ID of the receiver of the nofication.
351 |
# File 'lib/lws/apps/presence.rb', line 351 belongs_to :sender_id |