Class: Cryptohopper::Resources::Platform

Inherits:
Object
  • Object
show all
Defined in:
lib/cryptohopper/resources/platform.rb

Overview

‘client.platform` — marketing / i18n / discovery reads (all public).

Instance Method Summary collapse

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_typesObject



46
47
48
# File 'lib/cryptohopper/resources/platform.rb', line 46

def bot_types
  @client._request("GET", "/platform/bottypes")
end

#countriesObject



30
31
32
# File 'lib/cryptohopper/resources/platform.rb', line 30

def countries
  @client._request("GET", "/platform/countries")
end

#country_allowlistObject



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_countryObject



38
39
40
# File 'lib/cryptohopper/resources/platform.rb', line 38

def ip_country
  @client._request("GET", "/platform/ipcountry")
end

#languagesObject



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_barObject



21
22
23
# File 'lib/cryptohopper/resources/platform.rb', line 21

def promo_bar
  @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