Module: SystemSettings

Included in:
Config
Defined in:
lib/user/config/system_settings.rb

Instance Method Summary collapse

Instance Method Details

#clear_tag(tag) ⇒ Object

Clear tag.

Clar a tag info.

Parameters

tag

(Integer) – Tag id.

Example

@data = @mints_user.clear_tag(1)
[View source]

50
51
52
# File 'lib/user/config/system_settings.rb', line 50

def clear_tag(tag)
    return @client.raw("get", "/config/settings/tags/#{tag}/clear")
end

#create_setting(data) ⇒ Object

Create setting.

Create a setting title with data.

Parameters

data

(Hash) – Data to be submitted.

Example

data = {
  "title": "new_settings"
}
@data = @mints_user.create_setting(data)
[View source]

38
39
40
# File 'lib/user/config/system_settings.rb', line 38

def create_setting(data)
    return @client.raw("post", "/config/settings", nil, data_transform(data))
end

#get_settingsObject

Get settings.

Get a collection of settings.

Example

@data = @mints_user.get_settings
[View source]

23
24
25
# File 'lib/user/config/system_settings.rb', line 23

def get_settings
    return @client.raw("get", "/config/settings")
end

#get_settings_by_keys(options) ⇒ Object

Get settings by keys.

Get a collection of settings using keys.

Example

options = {
  "setting_keys": "email_transport_provider,email_template_provider,email_template_default_from_address"
}
@data = @mints_user.get_settings_by_keys(options)
[View source]

14
15
16
# File 'lib/user/config/system_settings.rb', line 14

def get_settings_by_keys(options)
    return @client.raw("get", "/config/settings/by-keys", options)
end