lib/neutrino/gateway/map_type.rb
# Gets the URI for a specific map type
#
# @param [Hash] params specify what map type to get, either `:unmapped`, or `:local_root` and `:local_extension`
# @return [String] the base URI for getting a specific map type as specified by `params`
# @raise [Exceptions::BadRequestError] when `:unmapped` is not specified or `:local_root` and `:local_extension` are not specified
Gets the URI for a specific map type
Gets the URI for a specific map type
def specific_map_type_uri(params)
          path = base_uri
          path << "/#{params[:type]}" if params[:type]
          path << '/unmapped' if params[:unmapped]
          if params[:format] && SUPPORTED_EXPORT_FILE_TYPES.include?(params[:format])
            path << ".#{params[:format]}"
          end
          path
        end
def specific_map_type_uri ( params ) path = base_uri path << "/#{params[:type]}" if params [ :type ] path << '/unmapped' if params [ :unmapped ] if params [ :format ] && SUPPORTED_EXPORT_FILE_TYPES . include? ( params [ :format ] ) path << ".#{params[:format]}" end path end
Gets the URI for a specific map type
Gets the URI for a specific map type
the base URI for getting a specific map type as specified by `params`
the base URI for getting a specific map type as specified by ` params `
String
[Exceptions::BadRequestError] when `:unmapped` is not specified or `:local_root` and `:local_extension` are not specified
[ Exceptions :: BadRequestError ] when ` : unmapped ` is not specified or ` : local_root ` and ` : local_extension ` are not specified
params
<not_specific>
<not_specific>
params specify what map type to get, either `:unmapped`, or `:local_root` and `:local_extension`
params specify what map type to get either ` : unmapped ` or ` : local_root ` and ` : local_extension `