Class: CoinMarketCapitalization::Content

Inherits:
Base
  • Object
show all
Defined in:
lib/coin_market_capitalization/content.rb

Overview

Content class - contains methods that map to API endpoints for content data. This category currently includes 4 endpoints

Constant Summary collapse

BASE_URL =
"https://pro-api.coinmarketcap.com/v1/content"
END_POINT_ENTRIES =
%w[
  latest
  posts/top
  posts/latest
  posts/comments
].freeze

Instance Attribute Summary

Attributes inherited from Base

#adapter, #api_key, #base_url

Instance Method Summary collapse

Methods inherited from Base

#connection

Constructor Details

#initialize(api_key:, base_url: BASE_URL, adapter: Faraday.default_adapter) ⇒ Content

Returns a new instance of Content.



15
16
17
# File 'lib/coin_market_capitalization/content.rb', line 15

def initialize(api_key:, base_url: BASE_URL, adapter: Faraday.default_adapter)
  super
end