Module: CoingeckoRuby::Client::Events
- Included in:
- CoingeckoRuby::Client
- Defined in:
- lib/coingecko_ruby/client/events.rb
Instance Method Summary collapse
-
#event_countries ⇒ Hash
Fetches the valid list of countries to fetch events from.
-
#event_types ⇒ Array<Hash>
Fetches the valid list of events to fetch.
-
#events(**options) ⇒ Array<Hash>
Fetches the list of events listed in CoinGecko.
-
#get_event_countries ⇒ Object
deprecated
Deprecated.
Use #event_countries instead
-
#get_event_types ⇒ Object
deprecated
Deprecated.
Use #event_types instead
-
#get_events(options: {}) ⇒ Object
deprecated
Deprecated.
Use #events instead
Instance Method Details
#event_countries ⇒ Hash
Fetches the valid list of countries to fetch events from.
54 55 56 |
# File 'lib/coingecko_ruby/client/events.rb', line 54 def event_countries get 'events/countries' end |
#event_types ⇒ Array<Hash>
Fetches the valid list of events to fetch.
74 75 76 |
# File 'lib/coingecko_ruby/client/events.rb', line 74 def event_types get 'events/types' end |
#events(**options) ⇒ Array<Hash>
TODO:
CoinGecko API is not returning any list of events. Investigate why this is happening.
Fetches the list of events listed in CoinGecko.
18 19 20 |
# File 'lib/coingecko_ruby/client/events.rb', line 18 def events(**) get 'events', ** end |
#get_event_countries ⇒ Object
Deprecated.
Use #event_countries instead
59 60 61 |
# File 'lib/coingecko_ruby/client/events.rb', line 59 def get_event_countries event_countries end |
#get_event_types ⇒ Object
Deprecated.
Use #event_types instead
79 80 81 |
# File 'lib/coingecko_ruby/client/events.rb', line 79 def get_event_types event_types end |
#get_events(options: {}) ⇒ Object
Deprecated.
Use #events instead
23 24 25 |
# File 'lib/coingecko_ruby/client/events.rb', line 23 def get_events(options: {}) events(**) end |