class Mastodon::Notification
Public Class Methods
new(attributes = {})
click to toggle source
Calls superclass method
Mastodon::Base::new
# File lib/mastodon/notification.rb, line 21 def initialize(attributes = {}) attributes.fetch('id') super end
Public Instance Methods
status?()
click to toggle source
Does this notification include a status? @return [Boolean] true if a status is included, false otherwise
# File lib/mastodon/notification.rb, line 28 def status? attributes.key?('status') end