Sha256: fc8271d348a08d96ada4e3b68fd94442a8b113530ea09bdc50a1c0185cc37994

Contents?: true

Size: 1.52 KB

Versions: 3

Compression:

Stored size: 1.52 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


        protected

        private
    end 
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
appwrite-1.0.11 lib/appwrite/services/locale.rb
appwrite-1.0.10 lib/appwrite/services/locale.rb
appwrite-1.0.9 lib/appwrite/services/locale.rb