Class: Appwrite::Locale

Inherits:
Service show all
Defined in:
lib/appwrite/services/locale.rb

Instance Method Summary collapse

Methods inherited from Service

#initialize

Constructor Details

This class inherits a constructor from Appwrite::Service

Instance Method Details

#get_countriesObject



15
16
17
18
19
20
21
22
23
24
# File 'lib/appwrite/services/locale.rb', line 15

def get_countries()
    path = '/locale/countries'

    params = {
    }

    return @client.call('get', path, {
        'content-type' => 'application/json',
    }, params);
end

#get_countries_e_uObject



26
27
28
29
30
31
32
33
34
35
# File 'lib/appwrite/services/locale.rb', line 26

def get_countries_e_u()
    path = '/locale/countries/eu'

    params = {
    }

    return @client.call('get', path, {
        'content-type' => 'application/json',
    }, params);
end

#get_countries_phonesObject



37
38
39
40
41
42
43
44
45
46
# File 'lib/appwrite/services/locale.rb', line 37

def get_countries_phones()
    path = '/locale/countries/phones'

    params = {
    }

    return @client.call('get', path, {
        'content-type' => 'application/json',
    }, params);
end

#get_currenciesObject



48
49
50
51
52
53
54
55
56
57
# File 'lib/appwrite/services/locale.rb', line 48

def get_currencies()
    path = '/locale/currencies'

    params = {
    }

    return @client.call('get', path, {
        'content-type' => 'application/json',
    }, params);
end

#get_localeObject



4
5
6
7
8
9
10
11
12
13
# File 'lib/appwrite/services/locale.rb', line 4

def get_locale()
    path = '/locale'

    params = {
    }

    return @client.call('get', path, {
        'content-type' => 'application/json',
    }, params);
end