coinmarketcap_client 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +20 -9
  3. data/docs/{Info.md → CryptocurrencyInfo.md} +2 -2
  4. data/docs/{InfoUrls.md → CryptocurrencyInfoUrls.md} +1 -1
  5. data/docs/{MarketData.md → CryptocurrencyListings.md} +1 -1
  6. data/docs/{Map.md → CryptocurrencyMap.md} +1 -1
  7. data/docs/DefaultApi.md +146 -22
  8. data/docs/GlobalMetricsHistoricalQuote.md +10 -0
  9. data/docs/GlobalMetricsQuote.md +10 -0
  10. data/docs/GlobalMetricsQuotesHistorical.md +10 -0
  11. data/docs/GlobalMetricsQuotesLatest.md +14 -0
  12. data/docs/InlineResponse200.md +1 -1
  13. data/docs/InlineResponse2001.md +1 -1
  14. data/docs/InlineResponse2002.md +1 -1
  15. data/docs/InlineResponse2003.md +1 -1
  16. data/docs/InlineResponse2004.md +1 -1
  17. data/docs/InlineResponse2004Data.md +8 -0
  18. data/docs/InlineResponse2005.md +1 -1
  19. data/docs/InlineResponse2006.md +9 -0
  20. data/docs/InlineResponse2007.md +9 -0
  21. data/docs/InlineResponse2008.md +9 -0
  22. data/docs/InlineResponse2009.md +9 -0
  23. data/docs/Quote.md +1 -1
  24. data/lib/coinmarketcap_client.rb +13 -4
  25. data/lib/coinmarketcap_client/api/default_api.rb +150 -26
  26. data/lib/coinmarketcap_client/models/{info.rb → cryptocurrency_info.rb} +2 -2
  27. data/lib/coinmarketcap_client/models/{info_urls.rb → cryptocurrency_info_urls.rb} +1 -1
  28. data/lib/coinmarketcap_client/models/{market_data.rb → cryptocurrency_listings.rb} +1 -1
  29. data/lib/coinmarketcap_client/models/{map.rb → cryptocurrency_map.rb} +1 -1
  30. data/lib/coinmarketcap_client/models/global_metrics_historical_quote.rb +202 -0
  31. data/lib/coinmarketcap_client/models/global_metrics_quote.rb +202 -0
  32. data/lib/{coinmarketcap_api/models/inline_response_200_3.rb → coinmarketcap_client/models/global_metrics_quotes_historical.rb} +30 -11
  33. data/lib/{coinmarketcap_api/models/map.rb → coinmarketcap_client/models/global_metrics_quotes_latest.rb} +49 -55
  34. data/lib/coinmarketcap_client/models/inline_response_200.rb +1 -1
  35. data/lib/coinmarketcap_client/models/inline_response_200_1.rb +1 -1
  36. data/lib/coinmarketcap_client/models/inline_response_200_2.rb +1 -1
  37. data/lib/coinmarketcap_client/models/inline_response_200_3.rb +2 -4
  38. data/lib/coinmarketcap_client/models/inline_response_200_4.rb +2 -4
  39. data/lib/{coinmarketcap_api/models/inline_response_200_1.rb → coinmarketcap_client/models/inline_response_200_4_data.rb} +11 -11
  40. data/lib/coinmarketcap_client/models/inline_response_200_5.rb +1 -1
  41. data/lib/{coinmarketcap_api/models/inline_response_200_2.rb → coinmarketcap_client/models/inline_response_200_6.rb} +5 -5
  42. data/lib/{coinmarketcap_api/models/inline_response_200.rb → coinmarketcap_client/models/inline_response_200_7.rb} +4 -4
  43. data/lib/{coinmarketcap_api/models/inline_response_default_1.rb → coinmarketcap_client/models/inline_response_200_8.rb} +13 -4
  44. data/lib/{coinmarketcap_api/models/inline_response_default.rb → coinmarketcap_client/models/inline_response_200_9.rb} +13 -4
  45. data/lib/coinmarketcap_client/models/quote.rb +1 -1
  46. data/lib/coinmarketcap_client/version.rb +1 -1
  47. data/spec/api/default_api_spec.rb +71 -6
  48. data/spec/api_client_spec.rb +29 -29
  49. data/spec/configuration_spec.rb +3 -3
  50. data/spec/models/{info_spec.rb → cryptocurrency_info_spec.rb} +6 -6
  51. data/spec/models/{info_urls_spec.rb → cryptocurrency_info_urls_spec.rb} +6 -6
  52. data/spec/models/{market_data_spec.rb → cryptocurrency_listings_spec.rb} +6 -6
  53. data/spec/models/{map_spec.rb → cryptocurrency_map_spec.rb} +6 -6
  54. data/spec/models/global_metrics_historical_quote_spec.rb +53 -0
  55. data/spec/models/global_metrics_quote_spec.rb +53 -0
  56. data/spec/models/global_metrics_quotes_historical_spec.rb +53 -0
  57. data/spec/models/global_metrics_quotes_latest_spec.rb +77 -0
  58. data/spec/models/inline_response_200_1_spec.rb +9 -3
  59. data/spec/models/inline_response_200_2_spec.rb +3 -3
  60. data/spec/models/inline_response_200_3_spec.rb +9 -3
  61. data/spec/models/inline_response_200_4_data_spec.rb +41 -0
  62. data/spec/models/inline_response_200_4_spec.rb +3 -3
  63. data/spec/models/inline_response_200_5_spec.rb +3 -3
  64. data/spec/models/inline_response_200_6_spec.rb +47 -0
  65. data/spec/models/inline_response_200_7_spec.rb +47 -0
  66. data/spec/models/inline_response_200_8_spec.rb +47 -0
  67. data/spec/models/inline_response_200_9_spec.rb +47 -0
  68. data/spec/models/inline_response_200_spec.rb +3 -3
  69. data/spec/models/inline_response_default_1_spec.rb +3 -3
  70. data/spec/models/inline_response_default_spec.rb +3 -3
  71. data/spec/models/platform_spec.rb +3 -3
  72. data/spec/models/quote_spec.rb +3 -3
  73. data/spec/models/status_spec.rb +3 -3
  74. data/spec/spec_helper.rb +1 -1
  75. metadata +54 -34
  76. data/lib/coinmarketcap_api.rb +0 -50
  77. data/lib/coinmarketcap_api/api/default_api.rb +0 -145
  78. data/lib/coinmarketcap_api/api_client.rb +0 -389
  79. data/lib/coinmarketcap_api/api_error.rb +0 -38
  80. data/lib/coinmarketcap_api/configuration.rb +0 -209
  81. data/lib/coinmarketcap_api/models/info.rb +0 -276
  82. data/lib/coinmarketcap_api/models/info_urls.rb +0 -263
  83. data/lib/coinmarketcap_api/models/status.rb +0 -219
  84. data/lib/coinmarketcap_api/version.rb +0 -15
@@ -12,51 +12,51 @@ Swagger Codegen version: 2.4.4
12
12
 
13
13
  require 'spec_helper'
14
14
 
15
- describe CoinmarketcapAPI::ApiClient do
15
+ describe CoinmarketcapClient::ApiClient do
16
16
  context 'initialization' do
17
17
  context 'URL stuff' do
18
18
  context 'host' do
19
19
  it 'removes http from host' do
20
- CoinmarketcapAPI.configure { |c| c.host = 'http://example.com' }
21
- expect(CoinmarketcapAPI::Configuration.default.host).to eq('example.com')
20
+ CoinmarketcapClient.configure { |c| c.host = 'http://example.com' }
21
+ expect(CoinmarketcapClient::Configuration.default.host).to eq('example.com')
22
22
  end
23
23
 
24
24
  it 'removes https from host' do
25
- CoinmarketcapAPI.configure { |c| c.host = 'https://wookiee.com' }
26
- expect(CoinmarketcapAPI::ApiClient.default.config.host).to eq('wookiee.com')
25
+ CoinmarketcapClient.configure { |c| c.host = 'https://wookiee.com' }
26
+ expect(CoinmarketcapClient::ApiClient.default.config.host).to eq('wookiee.com')
27
27
  end
28
28
 
29
29
  it 'removes trailing path from host' do
30
- CoinmarketcapAPI.configure { |c| c.host = 'hobo.com/v4' }
31
- expect(CoinmarketcapAPI::Configuration.default.host).to eq('hobo.com')
30
+ CoinmarketcapClient.configure { |c| c.host = 'hobo.com/v4' }
31
+ expect(CoinmarketcapClient::Configuration.default.host).to eq('hobo.com')
32
32
  end
33
33
  end
34
34
 
35
35
  context 'base_path' do
36
36
  it "prepends a slash to base_path" do
37
- CoinmarketcapAPI.configure { |c| c.base_path = 'v4/dog' }
38
- expect(CoinmarketcapAPI::Configuration.default.base_path).to eq('/v4/dog')
37
+ CoinmarketcapClient.configure { |c| c.base_path = 'v4/dog' }
38
+ expect(CoinmarketcapClient::Configuration.default.base_path).to eq('/v4/dog')
39
39
  end
40
40
 
41
41
  it "doesn't prepend a slash if one is already there" do
42
- CoinmarketcapAPI.configure { |c| c.base_path = '/v4/dog' }
43
- expect(CoinmarketcapAPI::Configuration.default.base_path).to eq('/v4/dog')
42
+ CoinmarketcapClient.configure { |c| c.base_path = '/v4/dog' }
43
+ expect(CoinmarketcapClient::Configuration.default.base_path).to eq('/v4/dog')
44
44
  end
45
45
 
46
46
  it "ends up as a blank string if nil" do
47
- CoinmarketcapAPI.configure { |c| c.base_path = nil }
48
- expect(CoinmarketcapAPI::Configuration.default.base_path).to eq('')
47
+ CoinmarketcapClient.configure { |c| c.base_path = nil }
48
+ expect(CoinmarketcapClient::Configuration.default.base_path).to eq('')
49
49
  end
50
50
  end
51
51
  end
52
52
  end
53
53
 
54
54
  describe 'params_encoding in #build_request' do
55
- let(:config) { CoinmarketcapAPI::Configuration.new }
56
- let(:api_client) { CoinmarketcapAPI::ApiClient.new(config) }
55
+ let(:config) { CoinmarketcapClient::Configuration.new }
56
+ let(:api_client) { CoinmarketcapClient::ApiClient.new(config) }
57
57
 
58
58
  it 'defaults to nil' do
59
- expect(CoinmarketcapAPI::Configuration.default.params_encoding).to eq(nil)
59
+ expect(CoinmarketcapClient::Configuration.default.params_encoding).to eq(nil)
60
60
  expect(config.params_encoding).to eq(nil)
61
61
 
62
62
  request = api_client.build_request(:get, '/test')
@@ -71,11 +71,11 @@ describe CoinmarketcapAPI::ApiClient do
71
71
  end
72
72
 
73
73
  describe 'timeout in #build_request' do
74
- let(:config) { CoinmarketcapAPI::Configuration.new }
75
- let(:api_client) { CoinmarketcapAPI::ApiClient.new(config) }
74
+ let(:config) { CoinmarketcapClient::Configuration.new }
75
+ let(:api_client) { CoinmarketcapClient::ApiClient.new(config) }
76
76
 
77
77
  it 'defaults to 0' do
78
- expect(CoinmarketcapAPI::Configuration.default.timeout).to eq(0)
78
+ expect(CoinmarketcapClient::Configuration.default.timeout).to eq(0)
79
79
  expect(config.timeout).to eq(0)
80
80
 
81
81
  request = api_client.build_request(:get, '/test')
@@ -91,7 +91,7 @@ describe CoinmarketcapAPI::ApiClient do
91
91
 
92
92
  describe '#deserialize' do
93
93
  it "handles Array<Integer>" do
94
- api_client = CoinmarketcapAPI::ApiClient.new
94
+ api_client = CoinmarketcapClient::ApiClient.new
95
95
  headers = { 'Content-Type' => 'application/json' }
96
96
  response = double('response', headers: headers, body: '[12, 34]')
97
97
  data = api_client.deserialize(response, 'Array<Integer>')
@@ -100,7 +100,7 @@ describe CoinmarketcapAPI::ApiClient do
100
100
  end
101
101
 
102
102
  it 'handles Array<Array<Integer>>' do
103
- api_client = CoinmarketcapAPI::ApiClient.new
103
+ api_client = CoinmarketcapClient::ApiClient.new
104
104
  headers = { 'Content-Type' => 'application/json' }
105
105
  response = double('response', headers: headers, body: '[[12, 34], [56]]')
106
106
  data = api_client.deserialize(response, 'Array<Array<Integer>>')
@@ -109,7 +109,7 @@ describe CoinmarketcapAPI::ApiClient do
109
109
  end
110
110
 
111
111
  it 'handles Hash<String, String>' do
112
- api_client = CoinmarketcapAPI::ApiClient.new
112
+ api_client = CoinmarketcapClient::ApiClient.new
113
113
  headers = { 'Content-Type' => 'application/json' }
114
114
  response = double('response', headers: headers, body: '{"message": "Hello"}')
115
115
  data = api_client.deserialize(response, 'Hash<String, String>')
@@ -121,8 +121,8 @@ describe CoinmarketcapAPI::ApiClient do
121
121
  describe "#object_to_hash" do
122
122
  it 'ignores nils and includes empty arrays' do
123
123
  # uncomment below to test object_to_hash for model
124
- # api_client = CoinmarketcapAPI::ApiClient.new
125
- # _model = CoinmarketcapAPI::ModelName.new
124
+ # api_client = CoinmarketcapClient::ApiClient.new
125
+ # _model = CoinmarketcapClient::ModelName.new
126
126
  # update the model attribute below
127
127
  # _model.id = 1
128
128
  # update the expected value (hash) below
@@ -133,7 +133,7 @@ describe CoinmarketcapAPI::ApiClient do
133
133
 
134
134
  describe '#build_collection_param' do
135
135
  let(:param) { ['aa', 'bb', 'cc'] }
136
- let(:api_client) { CoinmarketcapAPI::ApiClient.new }
136
+ let(:api_client) { CoinmarketcapClient::ApiClient.new }
137
137
 
138
138
  it 'works for csv' do
139
139
  expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc')
@@ -161,7 +161,7 @@ describe CoinmarketcapAPI::ApiClient do
161
161
  end
162
162
 
163
163
  describe '#json_mime?' do
164
- let(:api_client) { CoinmarketcapAPI::ApiClient.new }
164
+ let(:api_client) { CoinmarketcapClient::ApiClient.new }
165
165
 
166
166
  it 'works' do
167
167
  expect(api_client.json_mime?(nil)).to eq false
@@ -178,7 +178,7 @@ describe CoinmarketcapAPI::ApiClient do
178
178
  end
179
179
 
180
180
  describe '#select_header_accept' do
181
- let(:api_client) { CoinmarketcapAPI::ApiClient.new }
181
+ let(:api_client) { CoinmarketcapClient::ApiClient.new }
182
182
 
183
183
  it 'works' do
184
184
  expect(api_client.select_header_accept(nil)).to be_nil
@@ -194,7 +194,7 @@ describe CoinmarketcapAPI::ApiClient do
194
194
  end
195
195
 
196
196
  describe '#select_header_content_type' do
197
- let(:api_client) { CoinmarketcapAPI::ApiClient.new }
197
+ let(:api_client) { CoinmarketcapClient::ApiClient.new }
198
198
 
199
199
  it 'works' do
200
200
  expect(api_client.select_header_content_type(nil)).to eq('application/json')
@@ -209,7 +209,7 @@ describe CoinmarketcapAPI::ApiClient do
209
209
  end
210
210
 
211
211
  describe '#sanitize_filename' do
212
- let(:api_client) { CoinmarketcapAPI::ApiClient.new }
212
+ let(:api_client) { CoinmarketcapClient::ApiClient.new }
213
213
 
214
214
  it 'works' do
215
215
  expect(api_client.sanitize_filename('sun')).to eq('sun')
@@ -12,14 +12,14 @@ Swagger Codegen version: 2.4.4
12
12
 
13
13
  require 'spec_helper'
14
14
 
15
- describe CoinmarketcapAPI::Configuration do
16
- let(:config) { CoinmarketcapAPI::Configuration.default }
15
+ describe CoinmarketcapClient::Configuration do
16
+ let(:config) { CoinmarketcapClient::Configuration.default }
17
17
 
18
18
  before(:each) do
19
19
  # uncomment below to setup host and base_path
20
20
  # require 'URI'
21
21
  # uri = URI.parse("https://pro-api.coinmarketcap.com/v1")
22
- # CoinmarketcapAPI.configure do |c|
22
+ # CoinmarketcapClient.configure do |c|
23
23
  # c.host = uri.host
24
24
  # c.base_path = uri.path
25
25
  # end
@@ -14,22 +14,22 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for CoinmarketcapAPI::Info
17
+ # Unit tests for CoinmarketcapClient::CryptocurrencyInfo
18
18
  # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
19
  # Please update as you see appropriate
20
- describe 'Info' do
20
+ describe 'CryptocurrencyInfo' do
21
21
  before do
22
22
  # run before each test
23
- @instance = CoinmarketcapAPI::Info.new
23
+ @instance = CoinmarketcapClient::CryptocurrencyInfo.new
24
24
  end
25
25
 
26
26
  after do
27
27
  # run after each test
28
28
  end
29
29
 
30
- describe 'test an instance of Info' do
31
- it 'should create an instance of Info' do
32
- expect(@instance).to be_instance_of(CoinmarketcapAPI::Info)
30
+ describe 'test an instance of CryptocurrencyInfo' do
31
+ it 'should create an instance of CryptocurrencyInfo' do
32
+ expect(@instance).to be_instance_of(CoinmarketcapClient::CryptocurrencyInfo)
33
33
  end
34
34
  end
35
35
  describe 'test attribute "id"' do
@@ -14,22 +14,22 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for CoinmarketcapAPI::InfoUrls
17
+ # Unit tests for CoinmarketcapClient::CryptocurrencyInfoUrls
18
18
  # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
19
  # Please update as you see appropriate
20
- describe 'InfoUrls' do
20
+ describe 'CryptocurrencyInfoUrls' do
21
21
  before do
22
22
  # run before each test
23
- @instance = CoinmarketcapAPI::InfoUrls.new
23
+ @instance = CoinmarketcapClient::CryptocurrencyInfoUrls.new
24
24
  end
25
25
 
26
26
  after do
27
27
  # run after each test
28
28
  end
29
29
 
30
- describe 'test an instance of InfoUrls' do
31
- it 'should create an instance of InfoUrls' do
32
- expect(@instance).to be_instance_of(CoinmarketcapAPI::InfoUrls)
30
+ describe 'test an instance of CryptocurrencyInfoUrls' do
31
+ it 'should create an instance of CryptocurrencyInfoUrls' do
32
+ expect(@instance).to be_instance_of(CoinmarketcapClient::CryptocurrencyInfoUrls)
33
33
  end
34
34
  end
35
35
  describe 'test attribute "website"' do
@@ -14,22 +14,22 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for CoinmarketcapAPI::MarketData
17
+ # Unit tests for CoinmarketcapClient::CryptocurrencyListings
18
18
  # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
19
  # Please update as you see appropriate
20
- describe 'MarketData' do
20
+ describe 'CryptocurrencyListings' do
21
21
  before do
22
22
  # run before each test
23
- @instance = CoinmarketcapAPI::MarketData.new
23
+ @instance = CoinmarketcapClient::CryptocurrencyListings.new
24
24
  end
25
25
 
26
26
  after do
27
27
  # run after each test
28
28
  end
29
29
 
30
- describe 'test an instance of MarketData' do
31
- it 'should create an instance of MarketData' do
32
- expect(@instance).to be_instance_of(CoinmarketcapAPI::MarketData)
30
+ describe 'test an instance of CryptocurrencyListings' do
31
+ it 'should create an instance of CryptocurrencyListings' do
32
+ expect(@instance).to be_instance_of(CoinmarketcapClient::CryptocurrencyListings)
33
33
  end
34
34
  end
35
35
  describe 'test attribute "id"' do
@@ -14,22 +14,22 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for CoinmarketcapAPI::Map
17
+ # Unit tests for CoinmarketcapClient::CryptocurrencyMap
18
18
  # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
19
  # Please update as you see appropriate
20
- describe 'Map' do
20
+ describe 'CryptocurrencyMap' do
21
21
  before do
22
22
  # run before each test
23
- @instance = CoinmarketcapAPI::Map.new
23
+ @instance = CoinmarketcapClient::CryptocurrencyMap.new
24
24
  end
25
25
 
26
26
  after do
27
27
  # run after each test
28
28
  end
29
29
 
30
- describe 'test an instance of Map' do
31
- it 'should create an instance of Map' do
32
- expect(@instance).to be_instance_of(CoinmarketcapAPI::Map)
30
+ describe 'test an instance of CryptocurrencyMap' do
31
+ it 'should create an instance of CryptocurrencyMap' do
32
+ expect(@instance).to be_instance_of(CoinmarketcapClient::CryptocurrencyMap)
33
33
  end
34
34
  end
35
35
  describe 'test attribute "id"' do
@@ -0,0 +1,53 @@
1
+ =begin
2
+ #Coinmarketcap API Swagger Implementation
3
+
4
+ #Define coinmarketcap's api in swagger 2.0 openapi standard
5
+
6
+ OpenAPI spec version: 1.0.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.4
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for CoinmarketcapClient::GlobalMetricsHistoricalQuote
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'GlobalMetricsHistoricalQuote' do
21
+ before do
22
+ # run before each test
23
+ @instance = CoinmarketcapClient::GlobalMetricsHistoricalQuote.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of GlobalMetricsHistoricalQuote' do
31
+ it 'should create an instance of GlobalMetricsHistoricalQuote' do
32
+ expect(@instance).to be_instance_of(CoinmarketcapClient::GlobalMetricsHistoricalQuote)
33
+ end
34
+ end
35
+ describe 'test attribute "total_market_cap"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "total_volume_24h"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ describe 'test attribute "timestamp"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ end
@@ -0,0 +1,53 @@
1
+ =begin
2
+ #Coinmarketcap API Swagger Implementation
3
+
4
+ #Define coinmarketcap's api in swagger 2.0 openapi standard
5
+
6
+ OpenAPI spec version: 1.0.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.4
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for CoinmarketcapClient::GlobalMetricsQuote
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'GlobalMetricsQuote' do
21
+ before do
22
+ # run before each test
23
+ @instance = CoinmarketcapClient::GlobalMetricsQuote.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of GlobalMetricsQuote' do
31
+ it 'should create an instance of GlobalMetricsQuote' do
32
+ expect(@instance).to be_instance_of(CoinmarketcapClient::GlobalMetricsQuote)
33
+ end
34
+ end
35
+ describe 'test attribute "total_market_cap"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "total_volume_24h"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ describe 'test attribute "last_updated"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ end
@@ -0,0 +1,53 @@
1
+ =begin
2
+ #Coinmarketcap API Swagger Implementation
3
+
4
+ #Define coinmarketcap's api in swagger 2.0 openapi standard
5
+
6
+ OpenAPI spec version: 1.0.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.4
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for CoinmarketcapClient::GlobalMetricsQuotesHistorical
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'GlobalMetricsQuotesHistorical' do
21
+ before do
22
+ # run before each test
23
+ @instance = CoinmarketcapClient::GlobalMetricsQuotesHistorical.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of GlobalMetricsQuotesHistorical' do
31
+ it 'should create an instance of GlobalMetricsQuotesHistorical' do
32
+ expect(@instance).to be_instance_of(CoinmarketcapClient::GlobalMetricsQuotesHistorical)
33
+ end
34
+ end
35
+ describe 'test attribute "timestamp"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "btc_dominance"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ describe 'test attribute "quote"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ end