coinmarketcap_client 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +27 -27
- data/coinmarketcap_client.gemspec +2 -2
- data/docs/DefaultApi.md +13 -13
- data/docs/Info.md +1 -1
- data/docs/InfoUrls.md +1 -1
- data/docs/InlineResponse200.md +1 -1
- data/docs/InlineResponse2001.md +1 -1
- data/docs/InlineResponse2002.md +1 -1
- data/docs/InlineResponse2003.md +1 -1
- data/docs/InlineResponse2004.md +1 -1
- data/docs/InlineResponse2005.md +1 -1
- data/docs/InlineResponseDefault.md +1 -1
- data/docs/InlineResponseDefault1.md +1 -1
- data/docs/Map.md +1 -1
- data/docs/MarketData.md +1 -1
- data/docs/Platform.md +1 -1
- data/docs/Quote.md +1 -1
- data/docs/Status.md +1 -1
- data/lib/coinmarketcap_client.rb +2 -2
- data/lib/coinmarketcap_client/api/default_api.rb +1 -1
- data/lib/coinmarketcap_client/api_client.rb +2 -2
- data/lib/coinmarketcap_client/api_error.rb +1 -1
- data/lib/coinmarketcap_client/configuration.rb +1 -1
- data/lib/coinmarketcap_client/models/info.rb +2 -2
- data/lib/coinmarketcap_client/models/info_urls.rb +2 -2
- data/lib/coinmarketcap_client/models/inline_response_200.rb +2 -2
- data/lib/coinmarketcap_client/models/inline_response_200_1.rb +2 -2
- data/lib/coinmarketcap_client/models/inline_response_200_2.rb +2 -2
- data/lib/coinmarketcap_client/models/inline_response_200_3.rb +2 -2
- data/lib/coinmarketcap_client/models/inline_response_200_4.rb +2 -2
- data/lib/coinmarketcap_client/models/inline_response_200_5.rb +2 -2
- data/lib/coinmarketcap_client/models/inline_response_default.rb +2 -2
- data/lib/coinmarketcap_client/models/inline_response_default_1.rb +2 -2
- data/lib/coinmarketcap_client/models/map.rb +2 -2
- data/lib/coinmarketcap_client/models/market_data.rb +2 -2
- data/lib/coinmarketcap_client/models/platform.rb +2 -2
- data/lib/coinmarketcap_client/models/quote.rb +2 -2
- data/lib/coinmarketcap_client/models/status.rb +2 -2
- data/lib/coinmarketcap_client/version.rb +2 -2
- metadata +2 -3
- data/coinmarketcap_api.gemspec +0 -45
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97eb60abed6d516f652f3e3bb3a0546a74a8e193584c4e3ba761a86ff1d06349
|
4
|
+
data.tar.gz: 793811b9a98f8f1ddc7ff304a38694f1cade97aba481583c55efb29e62fae4bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a82426e0718974f89c4aa73481774fc81ff9b2bd02998d701e0d5ddf3bfdc90676e861cb45f834c1fcee254831801c01ded5a177215fa09c573c731d3629c496
|
7
|
+
data.tar.gz: e8b7aa89ec41d5e08ff466a4494d8eaa3dd5132ab155c39237fc08771cd48cce32c0b9b648572315c0819f77d5fe3eba0372512756549efcc74cdc1aa6934fbd
|
data/README.md
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
# coinmarketcap_client
|
2
2
|
|
3
|
-
|
3
|
+
CoinmarketcapClient - the Ruby gem for the Coinmarketcap API Swagger Implementation
|
4
4
|
|
5
5
|
Define coinmarketcap's api in swagger 2.0 openapi standard
|
6
6
|
|
7
7
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
8
|
|
9
9
|
- API version: 1.0.0
|
10
|
-
- Package version: 1.0.
|
10
|
+
- Package version: 1.0.1
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
12
12
|
|
13
13
|
## Installation
|
@@ -23,15 +23,15 @@ gem build coinmarketcap_client.gemspec
|
|
23
23
|
Then either install the gem locally:
|
24
24
|
|
25
25
|
```shell
|
26
|
-
gem install ./coinmarketcap_client-1.0.
|
26
|
+
gem install ./coinmarketcap_client-1.0.1.gem
|
27
27
|
```
|
28
|
-
(for development, run `gem install --dev ./coinmarketcap_client-1.0.
|
28
|
+
(for development, run `gem install --dev ./coinmarketcap_client-1.0.1.gem` to install the development dependencies)
|
29
29
|
|
30
30
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
31
31
|
|
32
32
|
Finally add this to the Gemfile:
|
33
33
|
|
34
|
-
gem 'coinmarketcap_client', '~> 1.0.
|
34
|
+
gem 'coinmarketcap_client', '~> 1.0.1'
|
35
35
|
|
36
36
|
### Install from Git
|
37
37
|
|
@@ -55,14 +55,14 @@ Please follow the [installation](#installation) procedure and then run the follo
|
|
55
55
|
require 'coinmarketcap_client'
|
56
56
|
|
57
57
|
# Setup authorization
|
58
|
-
|
58
|
+
CoinmarketcapClient.configure do |config|
|
59
59
|
# Configure API key authorization: ApiKeyAuth
|
60
60
|
config.api_key['X-CMC_PRO_API_KEY'] = 'YOUR API KEY'
|
61
61
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
62
62
|
#config.api_key_prefix['X-CMC_PRO_API_KEY'] = 'Bearer'
|
63
63
|
end
|
64
64
|
|
65
|
-
api_instance =
|
65
|
+
api_instance = CoinmarketcapClient::DefaultApi.new
|
66
66
|
|
67
67
|
opts = {
|
68
68
|
id: 'id_example', # String | One or more comma-separated CoinMarketCap cryptocurrency IDs. Example: \"1,2\"
|
@@ -73,7 +73,7 @@ begin
|
|
73
73
|
#Get metadata
|
74
74
|
result = api_instance.cryptocurrency_info_get(opts)
|
75
75
|
p result
|
76
|
-
rescue
|
76
|
+
rescue CoinmarketcapClient::ApiError => e
|
77
77
|
puts "Exception when calling DefaultApi->cryptocurrency_info_get: #{e}"
|
78
78
|
end
|
79
79
|
|
@@ -85,29 +85,29 @@ All URIs are relative to *https://pro-api.coinmarketcap.com/v1*
|
|
85
85
|
|
86
86
|
Class | Method | HTTP request | Description
|
87
87
|
------------ | ------------- | ------------- | -------------
|
88
|
-
*
|
89
|
-
*
|
90
|
-
*
|
91
|
-
*
|
88
|
+
*CoinmarketcapClient::DefaultApi* | [**cryptocurrency_info_get**](docs/DefaultApi.md#cryptocurrency_info_get) | **GET** /cryptocurrency/info | Get metadata
|
89
|
+
*CoinmarketcapClient::DefaultApi* | [**cryptocurrency_listings_historical_get**](docs/DefaultApi.md#cryptocurrency_listings_historical_get) | **GET** /cryptocurrency/listings/historical | List all cryptocurrencies (historical)
|
90
|
+
*CoinmarketcapClient::DefaultApi* | [**cryptocurrency_listings_latest_get**](docs/DefaultApi.md#cryptocurrency_listings_latest_get) | **GET** /cryptocurrency/listings/latest | List all cryptocurrencies (latest)
|
91
|
+
*CoinmarketcapClient::DefaultApi* | [**cryptocurrency_map_get**](docs/DefaultApi.md#cryptocurrency_map_get) | **GET** /cryptocurrency/map | Get CoinMarketCap ID map
|
92
92
|
|
93
93
|
|
94
94
|
## Documentation for Models
|
95
95
|
|
96
|
-
- [
|
97
|
-
- [
|
98
|
-
- [
|
99
|
-
- [
|
100
|
-
- [
|
101
|
-
- [
|
102
|
-
- [
|
103
|
-
- [
|
104
|
-
- [
|
105
|
-
- [
|
106
|
-
- [
|
107
|
-
- [
|
108
|
-
- [
|
109
|
-
- [
|
110
|
-
- [
|
96
|
+
- [CoinmarketcapClient::Info](docs/Info.md)
|
97
|
+
- [CoinmarketcapClient::InfoUrls](docs/InfoUrls.md)
|
98
|
+
- [CoinmarketcapClient::InlineResponse200](docs/InlineResponse200.md)
|
99
|
+
- [CoinmarketcapClient::InlineResponse2001](docs/InlineResponse2001.md)
|
100
|
+
- [CoinmarketcapClient::InlineResponse2002](docs/InlineResponse2002.md)
|
101
|
+
- [CoinmarketcapClient::InlineResponse2003](docs/InlineResponse2003.md)
|
102
|
+
- [CoinmarketcapClient::InlineResponse2004](docs/InlineResponse2004.md)
|
103
|
+
- [CoinmarketcapClient::InlineResponse2005](docs/InlineResponse2005.md)
|
104
|
+
- [CoinmarketcapClient::InlineResponseDefault](docs/InlineResponseDefault.md)
|
105
|
+
- [CoinmarketcapClient::InlineResponseDefault1](docs/InlineResponseDefault1.md)
|
106
|
+
- [CoinmarketcapClient::Map](docs/Map.md)
|
107
|
+
- [CoinmarketcapClient::MarketData](docs/MarketData.md)
|
108
|
+
- [CoinmarketcapClient::Platform](docs/Platform.md)
|
109
|
+
- [CoinmarketcapClient::Quote](docs/Quote.md)
|
110
|
+
- [CoinmarketcapClient::Status](docs/Status.md)
|
111
111
|
|
112
112
|
|
113
113
|
## Documentation for Authorization
|
@@ -17,11 +17,11 @@ require "coinmarketcap_client/version"
|
|
17
17
|
|
18
18
|
Gem::Specification.new do |s|
|
19
19
|
s.name = "coinmarketcap_client"
|
20
|
-
s.version =
|
20
|
+
s.version = CoinmarketcapClient::VERSION
|
21
21
|
s.platform = Gem::Platform::RUBY
|
22
22
|
s.authors = ["Joshua Wilkosz"]
|
23
23
|
s.email = ["joshua@wilkosz.com.au"]
|
24
|
-
s.homepage = "https://github.com/wilkosz/coinmarketcap_api_sdks"
|
24
|
+
s.homepage = "https://github.com/wilkosz/coinmarketcap_api_sdks/tree/master/ruby"
|
25
25
|
s.summary = "Swagger 2.0 Implementation of Coinmarketcaps API"
|
26
26
|
s.description = "Swagger 2.0 Implementation of Coinmarketcaps API"
|
27
27
|
s.license = "Unlicense"
|
data/docs/DefaultApi.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# CoinmarketcapClient::DefaultApi
|
2
2
|
|
3
3
|
All URIs are relative to *https://pro-api.coinmarketcap.com/v1*
|
4
4
|
|
@@ -22,14 +22,14 @@ Returns all static metadata for one or more cryptocurrencies including name, sym
|
|
22
22
|
# load the gem
|
23
23
|
require 'coinmarketcap_client'
|
24
24
|
# setup authorization
|
25
|
-
|
25
|
+
CoinmarketcapClient.configure do |config|
|
26
26
|
# Configure API key authorization: ApiKeyAuth
|
27
27
|
config.api_key['X-CMC_PRO_API_KEY'] = 'YOUR API KEY'
|
28
28
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
29
29
|
#config.api_key_prefix['X-CMC_PRO_API_KEY'] = 'Bearer'
|
30
30
|
end
|
31
31
|
|
32
|
-
api_instance =
|
32
|
+
api_instance = CoinmarketcapClient::DefaultApi.new
|
33
33
|
|
34
34
|
opts = {
|
35
35
|
id: 'id_example', # String | One or more comma-separated CoinMarketCap cryptocurrency IDs. Example: \"1,2\"
|
@@ -40,7 +40,7 @@ begin
|
|
40
40
|
#Get metadata
|
41
41
|
result = api_instance.cryptocurrency_info_get(opts)
|
42
42
|
p result
|
43
|
-
rescue
|
43
|
+
rescue CoinmarketcapClient::ApiError => e
|
44
44
|
puts "Exception when calling DefaultApi->cryptocurrency_info_get: #{e}"
|
45
45
|
end
|
46
46
|
```
|
@@ -79,14 +79,14 @@ Get a paginated list of all cryptocurrencies with market data for a given histor
|
|
79
79
|
# load the gem
|
80
80
|
require 'coinmarketcap_client'
|
81
81
|
# setup authorization
|
82
|
-
|
82
|
+
CoinmarketcapClient.configure do |config|
|
83
83
|
# Configure API key authorization: ApiKeyAuth
|
84
84
|
config.api_key['X-CMC_PRO_API_KEY'] = 'YOUR API KEY'
|
85
85
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
86
86
|
#config.api_key_prefix['X-CMC_PRO_API_KEY'] = 'Bearer'
|
87
87
|
end
|
88
88
|
|
89
|
-
api_instance =
|
89
|
+
api_instance = CoinmarketcapClient::DefaultApi.new
|
90
90
|
|
91
91
|
opts = {
|
92
92
|
timestamp: 'timestamp_example', # String | Timestamp (Unix or ISO 8601) to return historical cryptocurrency listings for.
|
@@ -102,7 +102,7 @@ begin
|
|
102
102
|
#List all cryptocurrencies (historical)
|
103
103
|
result = api_instance.cryptocurrency_listings_historical_get(opts)
|
104
104
|
p result
|
105
|
-
rescue
|
105
|
+
rescue CoinmarketcapClient::ApiError => e
|
106
106
|
puts "Exception when calling DefaultApi->cryptocurrency_listings_historical_get: #{e}"
|
107
107
|
end
|
108
108
|
```
|
@@ -146,14 +146,14 @@ Get a paginated list of all cryptocurrencies with latest market data. You can co
|
|
146
146
|
# load the gem
|
147
147
|
require 'coinmarketcap_client'
|
148
148
|
# setup authorization
|
149
|
-
|
149
|
+
CoinmarketcapClient.configure do |config|
|
150
150
|
# Configure API key authorization: ApiKeyAuth
|
151
151
|
config.api_key['X-CMC_PRO_API_KEY'] = 'YOUR API KEY'
|
152
152
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
153
153
|
#config.api_key_prefix['X-CMC_PRO_API_KEY'] = 'Bearer'
|
154
154
|
end
|
155
155
|
|
156
|
-
api_instance =
|
156
|
+
api_instance = CoinmarketcapClient::DefaultApi.new
|
157
157
|
|
158
158
|
opts = {
|
159
159
|
start: 1, # Integer | Optionally offset the start (1-based index) of the paginated list of items to return.
|
@@ -168,7 +168,7 @@ begin
|
|
168
168
|
#List all cryptocurrencies (latest)
|
169
169
|
result = api_instance.cryptocurrency_listings_latest_get(opts)
|
170
170
|
p result
|
171
|
-
rescue
|
171
|
+
rescue CoinmarketcapClient::ApiError => e
|
172
172
|
puts "Exception when calling DefaultApi->cryptocurrency_listings_latest_get: #{e}"
|
173
173
|
end
|
174
174
|
```
|
@@ -211,14 +211,14 @@ Returns a paginated list of all cryptocurrencies by CoinMarketCap ID. We recomme
|
|
211
211
|
# load the gem
|
212
212
|
require 'coinmarketcap_client'
|
213
213
|
# setup authorization
|
214
|
-
|
214
|
+
CoinmarketcapClient.configure do |config|
|
215
215
|
# Configure API key authorization: ApiKeyAuth
|
216
216
|
config.api_key['X-CMC_PRO_API_KEY'] = 'YOUR API KEY'
|
217
217
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
218
218
|
#config.api_key_prefix['X-CMC_PRO_API_KEY'] = 'Bearer'
|
219
219
|
end
|
220
220
|
|
221
|
-
api_instance =
|
221
|
+
api_instance = CoinmarketcapClient::DefaultApi.new
|
222
222
|
|
223
223
|
opts = {
|
224
224
|
listing_status: 'active', # String | Only active coins are returned by default. Pass 'inactive' to get a list of coins that are no longer active.
|
@@ -231,7 +231,7 @@ begin
|
|
231
231
|
#Get CoinMarketCap ID map
|
232
232
|
result = api_instance.cryptocurrency_map_get(opts)
|
233
233
|
p result
|
234
|
-
rescue
|
234
|
+
rescue CoinmarketcapClient::ApiError => e
|
235
235
|
puts "Exception when calling DefaultApi->cryptocurrency_map_get: #{e}"
|
236
236
|
end
|
237
237
|
```
|
data/docs/Info.md
CHANGED
data/docs/InfoUrls.md
CHANGED
data/docs/InlineResponse200.md
CHANGED
data/docs/InlineResponse2001.md
CHANGED
data/docs/InlineResponse2002.md
CHANGED
data/docs/InlineResponse2003.md
CHANGED
data/docs/InlineResponse2004.md
CHANGED
data/docs/InlineResponse2005.md
CHANGED
data/docs/Map.md
CHANGED
data/docs/MarketData.md
CHANGED
data/docs/Platform.md
CHANGED
data/docs/Quote.md
CHANGED
data/docs/Status.md
CHANGED
data/lib/coinmarketcap_client.rb
CHANGED
@@ -36,10 +36,10 @@ require 'coinmarketcap_client/models/status'
|
|
36
36
|
# APIs
|
37
37
|
require 'coinmarketcap_client/api/default_api'
|
38
38
|
|
39
|
-
module
|
39
|
+
module CoinmarketcapClient
|
40
40
|
class << self
|
41
41
|
# Customize default settings for the SDK using block.
|
42
|
-
#
|
42
|
+
# CoinmarketcapClient.configure do |config|
|
43
43
|
# config.username = "xxx"
|
44
44
|
# config.password = "xxx"
|
45
45
|
# end
|
@@ -17,7 +17,7 @@ require 'tempfile'
|
|
17
17
|
require 'typhoeus'
|
18
18
|
require 'uri'
|
19
19
|
|
20
|
-
module
|
20
|
+
module CoinmarketcapClient
|
21
21
|
class ApiClient
|
22
22
|
# The Configuration object holding settings to be used in the API client.
|
23
23
|
attr_accessor :config
|
@@ -210,7 +210,7 @@ module CoinmarketcapAPI
|
|
210
210
|
end
|
211
211
|
else
|
212
212
|
# models, e.g. Pet
|
213
|
-
|
213
|
+
CoinmarketcapClient.const_get(return_type).new.tap do |model|
|
214
214
|
model.build_from_hash data
|
215
215
|
end
|
216
216
|
end
|
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.4
|
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
|
-
module
|
15
|
+
module CoinmarketcapClient
|
16
16
|
class Info
|
17
17
|
attr_accessor :id
|
18
18
|
|
@@ -226,7 +226,7 @@ module CoinmarketcapAPI
|
|
226
226
|
end
|
227
227
|
end
|
228
228
|
else # model
|
229
|
-
temp_model =
|
229
|
+
temp_model = CoinmarketcapClient.const_get(type).new
|
230
230
|
temp_model.build_from_hash(value)
|
231
231
|
end
|
232
232
|
end
|
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.4
|
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
|
-
module
|
15
|
+
module CoinmarketcapClient
|
16
16
|
# Players associated with the
|
17
17
|
class InfoUrls
|
18
18
|
attr_accessor :website
|
@@ -213,7 +213,7 @@ module CoinmarketcapAPI
|
|
213
213
|
end
|
214
214
|
end
|
215
215
|
else # model
|
216
|
-
temp_model =
|
216
|
+
temp_model = CoinmarketcapClient.const_get(type).new
|
217
217
|
temp_model.build_from_hash(value)
|
218
218
|
end
|
219
219
|
end
|
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.4
|
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
|
-
module
|
15
|
+
module CoinmarketcapClient
|
16
16
|
class InlineResponse200
|
17
17
|
attr_accessor :data
|
18
18
|
|
@@ -144,7 +144,7 @@ module CoinmarketcapAPI
|
|
144
144
|
end
|
145
145
|
end
|
146
146
|
else # model
|
147
|
-
temp_model =
|
147
|
+
temp_model = CoinmarketcapClient.const_get(type).new
|
148
148
|
temp_model.build_from_hash(value)
|
149
149
|
end
|
150
150
|
end
|
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.4
|
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
|
-
module
|
15
|
+
module CoinmarketcapClient
|
16
16
|
class InlineResponse2001
|
17
17
|
attr_accessor :data
|
18
18
|
|
@@ -144,7 +144,7 @@ module CoinmarketcapAPI
|
|
144
144
|
end
|
145
145
|
end
|
146
146
|
else # model
|
147
|
-
temp_model =
|
147
|
+
temp_model = CoinmarketcapClient.const_get(type).new
|
148
148
|
temp_model.build_from_hash(value)
|
149
149
|
end
|
150
150
|
end
|
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.4
|
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
|
-
module
|
15
|
+
module CoinmarketcapClient
|
16
16
|
class InlineResponse2002
|
17
17
|
attr_accessor :data
|
18
18
|
|
@@ -144,7 +144,7 @@ module CoinmarketcapAPI
|
|
144
144
|
end
|
145
145
|
end
|
146
146
|
else # model
|
147
|
-
temp_model =
|
147
|
+
temp_model = CoinmarketcapClient.const_get(type).new
|
148
148
|
temp_model.build_from_hash(value)
|
149
149
|
end
|
150
150
|
end
|
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.4
|
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
|
-
module
|
15
|
+
module CoinmarketcapClient
|
16
16
|
class InlineResponse2003
|
17
17
|
attr_accessor :data
|
18
18
|
|
@@ -144,7 +144,7 @@ module CoinmarketcapAPI
|
|
144
144
|
end
|
145
145
|
end
|
146
146
|
else # model
|
147
|
-
temp_model =
|
147
|
+
temp_model = CoinmarketcapClient.const_get(type).new
|
148
148
|
temp_model.build_from_hash(value)
|
149
149
|
end
|
150
150
|
end
|
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.4
|
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
|
-
module
|
15
|
+
module CoinmarketcapClient
|
16
16
|
class InlineResponse2004
|
17
17
|
attr_accessor :data
|
18
18
|
|
@@ -144,7 +144,7 @@ module CoinmarketcapAPI
|
|
144
144
|
end
|
145
145
|
end
|
146
146
|
else # model
|
147
|
-
temp_model =
|
147
|
+
temp_model = CoinmarketcapClient.const_get(type).new
|
148
148
|
temp_model.build_from_hash(value)
|
149
149
|
end
|
150
150
|
end
|
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.4
|
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
|
-
module
|
15
|
+
module CoinmarketcapClient
|
16
16
|
class InlineResponse2005
|
17
17
|
attr_accessor :data
|
18
18
|
|
@@ -144,7 +144,7 @@ module CoinmarketcapAPI
|
|
144
144
|
end
|
145
145
|
end
|
146
146
|
else # model
|
147
|
-
temp_model =
|
147
|
+
temp_model = CoinmarketcapClient.const_get(type).new
|
148
148
|
temp_model.build_from_hash(value)
|
149
149
|
end
|
150
150
|
end
|
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.4
|
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
|
-
module
|
15
|
+
module CoinmarketcapClient
|
16
16
|
class InlineResponseDefault
|
17
17
|
attr_accessor :status
|
18
18
|
|
@@ -133,7 +133,7 @@ module CoinmarketcapAPI
|
|
133
133
|
end
|
134
134
|
end
|
135
135
|
else # model
|
136
|
-
temp_model =
|
136
|
+
temp_model = CoinmarketcapClient.const_get(type).new
|
137
137
|
temp_model.build_from_hash(value)
|
138
138
|
end
|
139
139
|
end
|
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.4
|
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
|
-
module
|
15
|
+
module CoinmarketcapClient
|
16
16
|
class InlineResponseDefault1
|
17
17
|
attr_accessor :status
|
18
18
|
|
@@ -133,7 +133,7 @@ module CoinmarketcapAPI
|
|
133
133
|
end
|
134
134
|
end
|
135
135
|
else # model
|
136
|
-
temp_model =
|
136
|
+
temp_model = CoinmarketcapClient.const_get(type).new
|
137
137
|
temp_model.build_from_hash(value)
|
138
138
|
end
|
139
139
|
end
|
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.4
|
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
|
-
module
|
15
|
+
module CoinmarketcapClient
|
16
16
|
class Map
|
17
17
|
attr_accessor :id
|
18
18
|
|
@@ -196,7 +196,7 @@ module CoinmarketcapAPI
|
|
196
196
|
end
|
197
197
|
end
|
198
198
|
else # model
|
199
|
-
temp_model =
|
199
|
+
temp_model = CoinmarketcapClient.const_get(type).new
|
200
200
|
temp_model.build_from_hash(value)
|
201
201
|
end
|
202
202
|
end
|
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.4
|
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
|
-
module
|
15
|
+
module CoinmarketcapClient
|
16
16
|
class MarketData
|
17
17
|
attr_accessor :id
|
18
18
|
|
@@ -254,7 +254,7 @@ module CoinmarketcapAPI
|
|
254
254
|
end
|
255
255
|
end
|
256
256
|
else # model
|
257
|
-
temp_model =
|
257
|
+
temp_model = CoinmarketcapClient.const_get(type).new
|
258
258
|
temp_model.build_from_hash(value)
|
259
259
|
end
|
260
260
|
end
|
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.4
|
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
|
-
module
|
15
|
+
module CoinmarketcapClient
|
16
16
|
# Metadata about the parent cryptocurrency platform this cryptocurrency belongs to if it is a token, otherwise null.
|
17
17
|
class Platform
|
18
18
|
attr_accessor :id
|
@@ -170,7 +170,7 @@ module CoinmarketcapAPI
|
|
170
170
|
end
|
171
171
|
end
|
172
172
|
else # model
|
173
|
-
temp_model =
|
173
|
+
temp_model = CoinmarketcapClient.const_get(type).new
|
174
174
|
temp_model.build_from_hash(value)
|
175
175
|
end
|
176
176
|
end
|
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.4
|
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
|
-
module
|
15
|
+
module CoinmarketcapClient
|
16
16
|
class Quote
|
17
17
|
attr_accessor :price
|
18
18
|
|
@@ -187,7 +187,7 @@ module CoinmarketcapAPI
|
|
187
187
|
end
|
188
188
|
end
|
189
189
|
else # model
|
190
|
-
temp_model =
|
190
|
+
temp_model = CoinmarketcapClient.const_get(type).new
|
191
191
|
temp_model.build_from_hash(value)
|
192
192
|
end
|
193
193
|
end
|
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.4
|
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
|
-
module
|
15
|
+
module CoinmarketcapClient
|
16
16
|
class Status
|
17
17
|
attr_accessor :timestamp
|
18
18
|
|
@@ -169,7 +169,7 @@ module CoinmarketcapAPI
|
|
169
169
|
end
|
170
170
|
end
|
171
171
|
else # model
|
172
|
-
temp_model =
|
172
|
+
temp_model = CoinmarketcapClient.const_get(type).new
|
173
173
|
temp_model.build_from_hash(value)
|
174
174
|
end
|
175
175
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coinmarketcap_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joshua Wilkosz
|
@@ -200,7 +200,6 @@ files:
|
|
200
200
|
- Gemfile
|
201
201
|
- README.md
|
202
202
|
- Rakefile
|
203
|
-
- coinmarketcap_api.gemspec
|
204
203
|
- coinmarketcap_client.gemspec
|
205
204
|
- docs/DefaultApi.md
|
206
205
|
- docs/Info.md
|
@@ -275,7 +274,7 @@ files:
|
|
275
274
|
- spec/models/quote_spec.rb
|
276
275
|
- spec/models/status_spec.rb
|
277
276
|
- spec/spec_helper.rb
|
278
|
-
homepage: https://github.com/wilkosz/coinmarketcap_api_sdks
|
277
|
+
homepage: https://github.com/wilkosz/coinmarketcap_api_sdks/tree/master/ruby
|
279
278
|
licenses:
|
280
279
|
- Unlicense
|
281
280
|
metadata: {}
|
data/coinmarketcap_api.gemspec
DELETED
@@ -1,45 +0,0 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
|
3
|
-
=begin
|
4
|
-
#Coinmarketcap API Swagger Implementation
|
5
|
-
|
6
|
-
#Define coinmarketcap's api in swagger 2.0 openapi standard
|
7
|
-
|
8
|
-
OpenAPI spec version: 1.0.0
|
9
|
-
|
10
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
11
|
-
Swagger Codegen version: 2.4.4
|
12
|
-
|
13
|
-
=end
|
14
|
-
|
15
|
-
$:.push File.expand_path("../lib", __FILE__)
|
16
|
-
require "coinmarketcap_api/version"
|
17
|
-
|
18
|
-
Gem::Specification.new do |s|
|
19
|
-
s.name = "coinmarketcap_api"
|
20
|
-
s.version = CoinmarketcapAPI::VERSION
|
21
|
-
s.platform = Gem::Platform::RUBY
|
22
|
-
s.authors = ["Joshua Wilkosz"]
|
23
|
-
s.email = ["joshua@wilkosz.com.au"]
|
24
|
-
s.homepage = "https://github.com/wilkosz/coinmarketcap_api_sdks"
|
25
|
-
s.summary = "Swagger 2.0 Implementation of Coinmarketcaps API"
|
26
|
-
s.description = "Swagger 2.0 Implementation of Coinmarketcaps API"
|
27
|
-
s.license = "Unlicense"
|
28
|
-
s.required_ruby_version = ">= 1.9"
|
29
|
-
|
30
|
-
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
31
|
-
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
32
|
-
|
33
|
-
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
34
|
-
s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
|
35
|
-
s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
|
36
|
-
s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
|
37
|
-
s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
|
38
|
-
s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
|
39
|
-
s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
|
40
|
-
|
41
|
-
s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
|
42
|
-
s.test_files = `find spec/*`.split("\n")
|
43
|
-
s.executables = []
|
44
|
-
s.require_paths = ["lib"]
|
45
|
-
end
|