Top Level Namespace
Defined in:
Constant Summary
-
HTML_REPLACEMENTS =
{"ä" => "ä", "Ä" => "Ä", "ö" => "ö", "Ö" => "Ö", "ü" => "ü", "Ü" => "Ü", "ß" => "ß"}
-
PATH_REPLACEMENTS =
{"ä" => "ae", "Ä" => "ae", "ö" => "oe", "Ö" => "oe", "ü" => "ue", "Ü" => "ue", "ß" => "ss"}
Method Summary
- generate_cookie(name : String, value : String) : HTTP::Cookie
- get_country_code_from_header(languages : Array(ObsLanguageQ) | Nil, default : String) : String
- get_lake(lake : ApiLake, precision = 1, formatRegion = nil) : Lake
- get_lake_by_uuid(uuid : String, precision = 1, formatRegion = nil) : Lake
- get_lakes : Response
- get_language_from_header(languages : Array(ObsLanguageQ) | Nil, default : String) : String
- get_tides_by_uuid(uuid : String) : Array(Tide)
- initial_lake_uuid_cookie(uuid : String) : HTTP::Cookie
-
parse_accept_language_header(accept_language_value : String | Nil) : Array(ObsLanguageQ) | Nil
see https://github.com/woog-life/api/issues/50
- uuid_has_feature(lakes : Array(LakeItem), uuid : String, feature : String)
Method Detail
def get_country_code_from_header(languages : Array(ObsLanguageQ) | Nil, default : String) : String
#
def get_language_from_header(languages : Array(ObsLanguageQ) | Nil, default : String) : String
#
def parse_accept_language_header(accept_language_value : String | Nil) : Array(ObsLanguageQ) | Nil
#
see https://github.com/woog-life/api/issues/50