ruby_api_pack_cloudways 0.1.0.beta.4 → 0.1.0.beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: db1288eea59a36999604a6631193db43845dab0a9299ec33f87a61bdd1d897bd
4
- data.tar.gz: 70e8d8d972691b9fb8f57deaa143ee72db9f98172125922ff13cfdb6ce1d170f
3
+ metadata.gz: ffcdd908f7f9937120ce8d9dc314c1f1d7e4d4946befe5d82c2bf8254a70fc9f
4
+ data.tar.gz: b673c313cf33f22781be1ecf171df63f12d4575659a7f5bca2e997ded1e72a6c
5
5
  SHA512:
6
- metadata.gz: 6d6d8eeeea9a28ee4417041efb7dc79757bdbb7a3f3ffe3d143964784ad0d44a2c5d7760f7eff9ba2a6660c1cab52c49526862bcce32e02b0a5591bad4743135
7
- data.tar.gz: 54ccc64de9ca972724e363c0623363dc9cff411ce23c839926dd673116c4e743f50a0e91985df8d31628fd14bfa9b12d1b87b6f6ccbc1c86b17110447c165483
6
+ metadata.gz: a06f3f4feb01ff1edd05186ccd05a09e814cd2e765c84b35cbaea9730226ad5f6e33ecddda09262befa4cd7a73dcff35452659cb7ceda2208bd5dd62ddf42dfe
7
+ data.tar.gz: ccf3876fff45a581ad547b693eb85fe5e4edd368e8a567448be4a82f552d1f6ee9dd124c345adee48113e196d5abf0822052a5a45eaa10cbfebda782387f7c48
data/README.md CHANGED
@@ -10,6 +10,25 @@ Easily connect to your Cloudways account through their API.
10
10
 
11
11
  gem 'ruby_api_pack_cloudways'
12
12
  bundle install
13
+
14
+ #### Controller Example
15
+
16
+ # Load Gems & Files
17
+ require "ruby_api_pack_cloudways"
18
+
19
+ def index
20
+ @server_index_connection_index = RubyApiPackCloudways::Api::CwLists.cw_server_list
21
+ end
22
+
23
+
24
+ #### Example on Index File
25
+
26
+ <% @server_index_connection_index.each do |continent| %>
27
+
28
+ <%= continent["id"] %>
29
+
30
+ <% end %>
31
+
13
32
 
14
33
  #### Variables
15
34
 
@@ -4,7 +4,7 @@ module RubyApiPackCloudways
4
4
 
5
5
  def self.cw_server_list
6
6
  cw_api_list_server = Connection::CwConnect.new(CW_API_URL, "/server")
7
- return cw_api_list_server.cloudways_api_connection.body
7
+ return Oj.load(cw_api_list_server.cloudways_api_connection.body)["servers"]
8
8
  end
9
9
 
10
10
  def self.cw_providers_list
@@ -1,3 +1,3 @@
1
1
  module RubyApiPackCloudways
2
- VERSION = "0.1.0.beta.4"
2
+ VERSION = "0.1.0.beta.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_api_pack_cloudways
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.beta.4
4
+ version: 0.1.0.beta.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - PHCDevworks