Class: MingleEvents::Processors::AuthorFilter::AuthorSpec

Inherits:
Object
  • Object
show all
Defined in:
lib/mingle_events/processors/author_filter.rb

Instance Method Summary collapse

Constructor Details

#initialize(spec, mingle_access, project_identifier) ⇒ AuthorSpec

Returns a new instance of AuthorSpec.



21
22
23
24
25
# File 'lib/mingle_events/processors/author_filter.rb', line 21

def initialize(spec, mingle_access, project_identifier)
  @spec = spec
  @mingle_access = mingle_access
  @project_identifier = project_identifier
end

Instance Method Details

#event_triggered_by?(event) ⇒ Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/mingle_events/processors/author_filter.rb', line 27

def event_triggered_by?(event)
  event.author.uri == author_uri
end