Module: CTFC::API

Defined in:
lib/ctfc/api.rb,
lib/ctfc/api/apitemplate.rb,
lib/ctfc/api/cryptocompare.rb

Overview

Keep sources to extract data. Each source has to be a class, named as API domain, extending ApiTemplate. This will automatically make it available in Client, but also added to .gemspec.

Examples:

Add a new source to extract data:

# make file new_source.rb
class NewSource < ApiTemplate

  private

  def process
    # check response hash for persistence of fiat and coins
    super
    # write method to scrap data from NewSource
  end
end

See Also:

Defined Under Namespace

Classes: ApiTemplate, Cryptocompare