Class: EventJob
- Inherits:
-
Object
- Object
- EventJob
- Includes:
- ActionView::Helpers, ActionView::Helpers::DateHelper, Hydra::AccessControlsEnforcement, SufiaHelper
- Defined in:
- lib/sufia/jobs/event_job.rb
Overview
Copyright © 2012 The Pennsylvania State University
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Direct Known Subclasses
ContentDeleteEventJob, ContentDepositEventJob, ContentNewVersionEventJob, ContentRestoredVersionEventJob, ContentUpdateEventJob, UserEditProfileEventJob, UserFollowEventJob, UserUnfollowEventJob
Instance Attribute Summary collapse
-
#depositor_id ⇒ Object
Returns the value of attribute depositor_id.
-
#generic_file_id ⇒ Object
Returns the value of attribute generic_file_id.
Instance Method Summary collapse
-
#initialize(generic_file_id, depositor_id) ⇒ EventJob
constructor
A new instance of EventJob.
- #queue_name ⇒ Object
Methods included from SufiaHelper
#display_user_name, #iconify_auto_link, #link_back_to_catalog, #link_back_to_dashboard, #link_to_dashboard_query, #link_to_facet, #link_to_facet_list, #link_to_field, #link_to_profile, #linkify_chat_id, #render_facet_value
Constructor Details
#initialize(generic_file_id, depositor_id) ⇒ EventJob
Returns a new instance of EventJob.
28 29 30 31 |
# File 'lib/sufia/jobs/event_job.rb', line 28 def initialize(generic_file_id, depositor_id) self.generic_file_id = generic_file_id self.depositor_id = depositor_id end |
Instance Attribute Details
#depositor_id ⇒ Object
Returns the value of attribute depositor_id.
26 27 28 |
# File 'lib/sufia/jobs/event_job.rb', line 26 def depositor_id @depositor_id end |
#generic_file_id ⇒ Object
Returns the value of attribute generic_file_id.
26 27 28 |
# File 'lib/sufia/jobs/event_job.rb', line 26 def generic_file_id @generic_file_id end |
Instance Method Details
#queue_name ⇒ Object
22 23 24 |
# File 'lib/sufia/jobs/event_job.rb', line 22 def queue_name :event end |