Class: CurationConcerns::Workflow::StatusListService
- Inherits:
-
Object
- Object
- CurationConcerns::Workflow::StatusListService
- Defined in:
- app/services/curation_concerns/workflow/status_list_service.rb
Instance Attribute Summary collapse
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Instance Method Summary collapse
-
#each ⇒ Array<StatusRow>
TODO: We will want to paginate this.
-
#initialize(user) ⇒ StatusListService
constructor
A new instance of StatusListService.
Constructor Details
#initialize(user) ⇒ StatusListService
Returns a new instance of StatusListService.
5 6 7 |
# File 'app/services/curation_concerns/workflow/status_list_service.rb', line 5 def initialize(user) @user = user end |
Instance Attribute Details
#user ⇒ Object (readonly)
Returns the value of attribute user.
9 10 11 |
# File 'app/services/curation_concerns/workflow/status_list_service.rb', line 9 def user @user end |
Instance Method Details
#each ⇒ Array<StatusRow>
TODO: We will want to paginate this
13 14 15 16 17 18 |
# File 'app/services/curation_concerns/workflow/status_list_service.rb', line 13 def each return enum_for(:each) unless block_given? solr_documents.each do |doc| yield doc end end |