Sha256: 91c1205ddb281cb4280e033326b4e2b88845a9b7c524575e5c8b0c606a95aad9

Contents?: true

Size: 820 Bytes

Versions: 11

Compression:

Stored size: 820 Bytes

Contents

module Puree

  module Extractor

    # Publisher extractor.
    #
    class Publisher < Puree::Extractor::Resource

      # @param id [String]
      # @return [Puree::Model::Publisher, nil]
      def find(id)
        super id: id,
              api_resource_type: :publisher,
              xml_extractor_resource_type: :publisher
      end

      # Count of records available.
      #
      # @param params [Hash] Combined GET and POST parameters for all records
      # @return [Integer]
      def count(params = {})
        record_count :publisher, params
      end

      # Random record.
      #
      # @param params [Hash] Combined GET and POST parameters for all records
      # @return [Puree::Model::Publisher, nil]
      def random(params = {})
        super :publisher, params
      end

    end

  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
puree-2.9.2 lib/puree/extractor/publisher.rb
puree-2.9.1 lib/puree/extractor/publisher.rb
puree-2.9.0 lib/puree/extractor/publisher.rb
puree-2.8.1 lib/puree/extractor/publisher.rb
puree-2.8.0 lib/puree/extractor/publisher.rb
puree-2.7.0 lib/puree/extractor/publisher.rb
puree-2.6.0 lib/puree/extractor/publisher.rb
puree-2.5.1 lib/puree/extractor/publisher.rb
puree-2.5.0 lib/puree/extractor/publisher.rb
puree-2.4.0 lib/puree/extractor/publisher.rb
puree-2.3.0 lib/puree/extractor/publisher.rb