Module: CoingeckoRuby::Client::Infos
- Included in:
- CoingeckoRuby::Client
- Defined in:
- lib/coingecko_ruby/client/infos.rb
Instance Method Summary collapse
-
#get_global_crypto_data ⇒ Object
deprecated
Deprecated.
Use #global_crypto_data instead
-
#get_global_defi_data ⇒ Object
deprecated
Deprecated.
Use #global_defi_data instead
- #get_status_updates(options: {}) ⇒ Object
-
#get_trending_searches ⇒ Object
deprecated
Deprecated.
Use #trending_searches instead
-
#global_crypto_data ⇒ Hash
Fetches global crypto data from CoinGecko.
-
#global_defi_data ⇒ Hash
Fetches global crypto data from CoinGecko.
-
#status_updates(**options) ⇒ Hash
Fetches coin and/or market status updates.
-
#trending_searches ⇒ Hash
Fetches the top 7 coin searches from CoinGecko in the last 24 hours.
Instance Method Details
#get_global_crypto_data ⇒ Object
Deprecated.
Use #global_crypto_data instead
43 44 45 |
# File 'lib/coingecko_ruby/client/infos.rb', line 43 def get_global_crypto_data global_crypto_data end |
#get_global_defi_data ⇒ Object
Deprecated.
Use #global_defi_data instead
72 73 74 |
# File 'lib/coingecko_ruby/client/infos.rb', line 72 def get_global_defi_data global_defi_data end |
#get_status_updates(options: {}) ⇒ Object
169 170 171 |
# File 'lib/coingecko_ruby/client/infos.rb', line 169 def get_status_updates(options: {}) status_updates(**) end |
#get_trending_searches ⇒ Object
Deprecated.
Use #trending_searches instead
110 111 112 |
# File 'lib/coingecko_ruby/client/infos.rb', line 110 def get_trending_searches trending_searches end |
#global_crypto_data ⇒ Hash
Fetches global crypto data from CoinGecko.
38 39 40 |
# File 'lib/coingecko_ruby/client/infos.rb', line 38 def global_crypto_data get 'global' end |
#global_defi_data ⇒ Hash
Fetches global crypto data from CoinGecko.
67 68 69 |
# File 'lib/coingecko_ruby/client/infos.rb', line 67 def global_defi_data get 'global/decentralized_finance_defi' end |
#status_updates(**options) ⇒ Hash
Fetches coin and/or market status updates.
165 166 167 |
# File 'lib/coingecko_ruby/client/infos.rb', line 165 def status_updates(**) get 'status_updates', ** end |
#trending_searches ⇒ Hash
Fetches the top 7 coin searches from CoinGecko in the last 24 hours.
105 106 107 |
# File 'lib/coingecko_ruby/client/infos.rb', line 105 def trending_searches get 'search/trending' end |