Sha256: 33d452adf1d9c5b4d5177a29ace506d59bbf48a37a103092cd32acb60dc81c01

Contents?: true

Size: 1.33 KB

Versions: 1

Compression:

Stored size: 1.33 KB

Contents

# frozen_string_literal: true

require('thor')
require('cns/apide')
require('cns/apies')
require('cns/apifr')
require('cns/apigm')
require('cns/apimt')
require('cns/apius')
require('cns/bigquery1')
require('cns/bigquery2')
require('cns/bigquery3')
require('cns/bigquery4')
require('cns/bitcoinde')
require('cns/etherscan1')
require('cns/etherscan2')
require('cns/greymass1')
require('cns/greymass2')
require('cns/kraken')
require('cns/paymium')
require('cns/therock')
require('cns/version')

module Cns
  # classe para erros desta gem
  class Erro < StandardError
    # @return [StandardError] personalizacao dos erros
    def initialize(msg)
      super(msg)
    end
  end

  # classe para carregar/mostrar dados transacoes eth & eos no bigquery
  class CLI < Thor
    desc 'work', 'carrega transacoes novas no bigquery'
    option :h, type: :hash, default: {}, desc: 'configuracao ajuste reposicionamento temporal'
    # carrega transacoes novas no bigquery
    def work
      Bigquery.new(options).processa_tudo
    end

    desc 'show', 'mostra resumo transacoes'
    option :v, type: :boolean, default: false, desc: 'mostra transacoes'
    option :t, type: :boolean, default: false, desc: 'mostra transacoes todas ou somente novas'
    # mostra resumo transacoes
    def show
      Bigquery.new(options).mostra_tudo
    end

    default_task :show
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cns-0.1.1 lib/cns.rb