Class: Megaplan::System
- Inherits:
-
Api
- Object
- Api
- Megaplan::System
show all
- Defined in:
- lib/megaplan/system.rb
Instance Attribute Summary
Attributes inherited from Api
#endpoint, #login, #password
Class Method Summary
collapse
Methods inherited from Api
#auth_params, #auth_path, #authenticate, bad_response, card, check_response, create, #create_signature, custom_get, custom_post, delete, edit, find, #get_headers, #initial_path, #initialize, list, make_get_req, make_post_req, parsed_body, query_path, resource_path, save, to_query
Constructor Details
This class inherits a constructor from Megaplan::Api
Class Method Details
.currencies(client, query = {}) ⇒ Object
14
15
16
|
# File 'lib/megaplan/system.rb', line 14
def currencies(client, query = {})
custom_get(client, "/BumsCommonApiV01/Currency/list.api", query)["currencies"] rescue []
end
|
.datetime(client) ⇒ Object
6
7
8
|
# File 'lib/megaplan/system.rb', line 6
def datetime(client)
custom_get(client, "/BumsCommonApiV01/System/datetime.api")["datetime"] rescue nil
end
|
.feedback(client, query) ⇒ Object
10
11
12
|
# File 'lib/megaplan/system.rb', line 10
def feedback(client, query)
custom_post(client, "/BumsCommonApiV01/System/feedback.api", query)
end
|
.taxes(client, query = {}) ⇒ Object
18
19
20
|
# File 'lib/megaplan/system.rb', line 18
def taxes(client, query = {})
custom_get(client, "/BumsCommonApiV01/Tax/list.api", query)["taxes"] rescue []
end
|