Sha256: ed62c8f1465fbd269b31edf3920cf3d6468eec80d641a70647acf03e236cd533

Contents?: true

Size: 1.42 KB

Versions: 24

Compression:

Stored size: 1.42 KB

Contents

module Exlibris
  module Primo
    module WebService
      module Request
        # 
        # Abstract class for reviews interaction
        # 
        class Reviews < UserRecord
          self.abstract = true
          self.has_client
        end
        
        # 
        # Get reviews from from Primo for a specified user
        # and record
        # 
        class GetReviews < Reviews; end

        # 
        # Get all reviews for a specified user from Primo
        # 
        class GetAllMyReviews < Reviews
          self.remove_base_elements :doc_id
        end

        # 
        # Get reviews for a specified record from Primo
        # 
        class GetReviewsForRecord < Reviews
          self.remove_base_elements :user_id
        end

        # 
        # Get reviews of a given rating for a specified user from Primo
        # 
        class GetReviewsByRating < Reviews
          self.add_base_elements :rating
          self.remove_base_elements :doc_id
        end

        # 
        # Add given review to Primo for a specified record and user
        # 
        class AddReview < Reviews
          # Add review elements to the base elements
          self.add_base_elements :value, :rating, :user_display_name, 
            :allow_user_name, :status
        end

        # 
        # Remove review from Primo for a specified record and user
        # 
        class RemoveReview < Reviews; end
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
exlibris-primo-2.1.1 lib/exlibris/primo/web_service/request/reviews.rb
exlibris-primo-2.1.0 lib/exlibris/primo/web_service/request/reviews.rb
exlibris-primo-2.0.0 lib/exlibris/primo/web_service/request/reviews.rb
exlibris-primo-1.1.9 lib/exlibris/primo/web_service/request/reviews.rb
exlibris-primo-1.1.8 lib/exlibris/primo/web_service/request/reviews.rb
exlibris-primo-1.1.7 lib/exlibris/primo/web_service/request/reviews.rb
exlibris-primo-1.1.6 lib/exlibris/primo/web_service/request/reviews.rb
exlibris-primo-1.1.5 lib/exlibris/primo/web_service/request/reviews.rb
exlibris-primo-1.1.4 lib/exlibris/primo/web_service/request/reviews.rb
exlibris-primo-1.1.3 lib/exlibris/primo/web_service/request/reviews.rb
exlibris-primo-1.1.2 lib/exlibris/primo/web_service/request/reviews.rb
exlibris-primo-1.1.1 lib/exlibris/primo/web_service/request/reviews.rb
exlibris-primo-1.1.0 lib/exlibris/primo/web_service/request/reviews.rb
exlibris-primo-1.0.11 lib/exlibris/primo/web_service/request/reviews.rb
exlibris-primo-1.0.10 lib/exlibris/primo/web_service/request/reviews.rb
exlibris-primo-1.0.9 lib/exlibris/primo/web_service/request/reviews.rb
exlibris-primo-1.0.8 lib/exlibris/primo/web_service/request/reviews.rb
exlibris-primo-1.0.7 lib/exlibris/primo/web_service/request/reviews.rb
exlibris-primo-1.0.6 lib/exlibris/primo/web_service/request/reviews.rb
exlibris-primo-1.0.5 lib/exlibris/primo/web_service/request/reviews.rb