Class: Cryptohopper::Resources::Platform
- Inherits:
-
Object
- Object
- Cryptohopper::Resources::Platform
- Defined in:
- lib/cryptohopper/resources/platform.rb
Overview
‘client.platform` — marketing / i18n / discovery reads (all public).
Instance Method Summary collapse
- #bot_types ⇒ Object
- #countries ⇒ Object
- #country_allowlist ⇒ Object
- #documentation(**params) ⇒ Object
-
#initialize(client) ⇒ Platform
constructor
A new instance of Platform.
- #ip_country ⇒ Object
- #languages ⇒ Object
- #latest_blog(**params) ⇒ Object
- #promo_bar ⇒ Object
- #search_documentation(query) ⇒ Object
Constructor Details
#initialize(client) ⇒ Platform
Returns a new instance of Platform.
7 8 9 |
# File 'lib/cryptohopper/resources/platform.rb', line 7 def initialize(client) @client = client end |
Instance Method Details
#bot_types ⇒ Object
46 47 48 |
# File 'lib/cryptohopper/resources/platform.rb', line 46 def bot_types @client._request("GET", "/platform/bottypes") end |
#countries ⇒ Object
30 31 32 |
# File 'lib/cryptohopper/resources/platform.rb', line 30 def countries @client._request("GET", "/platform/countries") end |
#country_allowlist ⇒ Object
34 35 36 |
# File 'lib/cryptohopper/resources/platform.rb', line 34 def country_allowlist @client._request("GET", "/platform/countryallowlist") end |
#documentation(**params) ⇒ Object
16 17 18 19 |
# File 'lib/cryptohopper/resources/platform.rb', line 16 def documentation(**params) @client._request("GET", "/platform/documentation", params: params.empty? ? nil : params) end |
#ip_country ⇒ Object
38 39 40 |
# File 'lib/cryptohopper/resources/platform.rb', line 38 def ip_country @client._request("GET", "/platform/ipcountry") end |
#languages ⇒ Object
42 43 44 |
# File 'lib/cryptohopper/resources/platform.rb', line 42 def languages @client._request("GET", "/platform/languages") end |
#latest_blog(**params) ⇒ Object
11 12 13 14 |
# File 'lib/cryptohopper/resources/platform.rb', line 11 def latest_blog(**params) @client._request("GET", "/platform/latestblog", params: params.empty? ? nil : params) end |
#promo_bar ⇒ Object
21 22 23 |
# File 'lib/cryptohopper/resources/platform.rb', line 21 def @client._request("GET", "/platform/promobar") end |
#search_documentation(query) ⇒ Object
25 26 27 28 |
# File 'lib/cryptohopper/resources/platform.rb', line 25 def search_documentation(query) @client._request("GET", "/platform/searchdocumentation", params: { q: query }) end |