Sha256: 63428ce810bd9a239ceb87d36afec1327bb07773f42db87da6d6a7dcc88fbf7f

Contents?: true

Size: 533 Bytes

Versions: 2

Compression:

Stored size: 533 Bytes

Contents

module SparkApi
  module Models

    class SavedSearch < Base 
      extend Finders
      include Concerns::Savable,
              Concerns::Destroyable

      self.element_name="savedsearches"

      def self.provided()
        Class.new(self).tap do |provided|
          provided.element_name = '/savedsearches'
          provided.prefix = '/provided'
          SparkApi.logger.info("#{self.name}.path: #{provided.path}")
        end
      end

      private

      def resource_pluralized; "SavedSearches" end

    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spark_api-1.2.1 lib/spark_api/models/saved_search.rb
spark_api-1.2.0 lib/spark_api/models/saved_search.rb