dynamicloud 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 93617affdbf27eadc0a4b960e61165122efa80fc
4
+ data.tar.gz: dbd2da288207442a06eb263d74515f5c01c2b118
5
+ SHA512:
6
+ metadata.gz: 56a382db316870f4f33e0f6509ed3e526448b9a5c6b71c5f6a0c170355599370fa4aa8683113e7a02d875f3d392f8e84d03baa507768be0aca0d8e8c58ee68a9
7
+ data.tar.gz: 43e48034e11363cd1b654886458f96d114f126402c744b5975664e2062ca5657275cd26fae225634e3e5ed11739daa7e0d18a7e752253c10f747c2ba39d59b0a
@@ -0,0 +1,50 @@
1
+ require 'yaml'
2
+
3
+ # This class maintains properties about api configuration.
4
+ # @author Eleazar Gomez
5
+ # @version 1.0.0
6
+ # @since 8/23/15
7
+ class Configuration
8
+
9
+ def get_property(property)
10
+ @config[property]
11
+ end
12
+
13
+ # Load the current properties in config.yml.
14
+ def initialize
15
+ @config = {
16
+ :url => 'http://api.dynamicloud.org',
17
+ # this url must be executed using post method
18
+ :url_get_records => '/api_models/{csk}/{aci}/get_records/{mid}/{count}/{offset}/',
19
+ # this url must be executed using post method
20
+ :url_get_specific_fields => '/api_models/{csk}/{aci}/get_records_by_projection/{mid}/{count}/{offset}/',
21
+ # this url must be executed using post method
22
+ :url_get_record_info => '/api_records/{csk}/{aci}/get_record_info/{mid}/{rid}',
23
+ # this url must be executed using post method
24
+ :url_update_record => '/api_records/{csk}/{aci}/update_record/{mid}/{rid}',
25
+ # this url must be executed using post method
26
+ :url_save_record => '/api_records/{csk}/{aci}/create_record/{mid}',
27
+ # this url must be executed using delete method
28
+ :url_delete_record => '/api_records/{csk}/{aci}/delete_record/{mid}/{rid}',
29
+ # this url must be executed using get method
30
+ :url_get_model_info => '/api_models/{csk}/{aci}/get_model_info/{mid}',
31
+ # this url must be executed using get method
32
+ :url_get_models => '/api_models/{csk}/{aci}/get_models',
33
+ # this url must be executed using get method
34
+ :url_get_fields => '/api_models/{csk}/{aci}/get_fields/{mid}',
35
+ # this url must be executed using post method
36
+ :url_upload_file => '/api_records/{csk}/{aci}/upload_file_record/{mid}/{rid}',
37
+ # this url must be executed using get method
38
+ :url_download_file => '/api_records/{csk}/{aci}/download_file_record/{mid}/{rid}/{identifier}',
39
+ # this url must be executed using get method
40
+ :url_share_file => '/api_records/{csk}/{aci}/share_file_record/{mid}/{rid}/{identifier}',
41
+ # this url must be executed using post method
42
+ :url_update_selection => '/api_records/{csk}/{aci}/update_using_selection/{mid}',
43
+ # this url must be executed using post method
44
+ :url_delete_selection => '/api_records/{csk}/{aci}/delete_using_selection/{mid}',
45
+ :version => '1.0.0'
46
+ }
47
+ end
48
+
49
+ PROPERTIES = Configuration.new
50
+ end