lib/ruby-lokalise-api/resources/base.rb
# Generates path for the individual resource based on the path for the collection
Generates path for the individual resource based on the path for the collection
Generates path for the individual resource based on the path for the collection
def infer_path_from(response, endpoint_generator = nil)
        id_key = id_key_for self.class.name.base_class_name
        data_key = data_key_for model_class: self.class.name.base_class_name
        path_with_id response, id_key, data_key, endpoint_generator
      end
def infer_path_from ( response , endpoint_generator = nil ) id_key = id_key_for self . class . name . base_class_name data_key = data_key_for model_class : self . class . name . base_class_name path_with_id response , id_key , data_key , endpoint_generator end
Generates path for the individual resource based on the path for the collection
Generates path for the individual resource based on the path for the collection
response
endpoint_generator