Class: Edools::Core::SchoolProduct

Inherits:
Base
  • Object
show all
Defined in:
lib/edools/core/school_product.rb

Class Method Summary collapse

Methods inherited from Base

refresh_config!, version, version=

Class Method Details

.collection_path(prefix_options = {}, query_options = nil) ⇒ Object



9
10
11
12
13
# File 'lib/edools/core/school_product.rb', line 9

def self.collection_path(prefix_options = {}, query_options = nil)
  super
  school_id = prefix_options[:school_id] || query_options.try(:[], :school_id)
  "/schools/#{school_id}/#{collection_name}.#{format.extension}#{query_string(query_options)}"
end