Module: Unforlogistics::Core::GlobalConfigs
- Included in:
- Api
- Defined in:
- lib/unforlogistics/core/global_configs.rb
Instance Method Summary collapse
- #get_global_config(key) ⇒ Object
- #get_global_configs ⇒ Object
- #update_global_config(key, value) ⇒ Object
Instance Method Details
#get_global_config(key) ⇒ Object
10 11 12 |
# File 'lib/unforlogistics/core/global_configs.rb', line 10 def get_global_config(key) get_request("/global_configs/#{key}").body end |
#get_global_configs ⇒ Object
4 5 6 7 8 |
# File 'lib/unforlogistics/core/global_configs.rb', line 4 def get_global_configs response = get_request('/global_configs') get_paging_response(response) end |
#update_global_config(key, value) ⇒ Object
14 15 16 17 18 |
# File 'lib/unforlogistics/core/global_configs.rb', line 14 def update_global_config(key, value) response = put_request("/global_configs/#{key}", { value: value }) get_persistance_response(response) end |