Sha256: 3299095fd80169596fe05ab3498b25ef2a3ffc2c5184aa97497497392f422586

Contents?: true

Size: 1.67 KB

Versions: 1

Compression:

Stored size: 1.67 KB

Contents

module Appwrite
    class Locale < Service

        def get()
            path = '/locale'

            params = {}

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

        def get_continents()
            path = '/locale/continents'

            params = {}

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

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

            params = {}

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

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

            params = {}

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

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

            params = {}

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

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

            params = {}

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

        def get_languages()
            path = '/locale/languages'

            params = {}

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


        protected

        private
    end 
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
appwrite-2.1.2 lib/appwrite/services/locale.rb