Sha256: 629f75f45ece715e8e0566dcb725fb908ef566c211b59bbd8569b36a84fa8825

Contents?: true

Size: 1.12 KB

Versions: 1

Compression:

Stored size: 1.12 KB

Contents

# frozen_string_literal: true

require('thor')
require('bct/apies')
require('bct/apigm')
require('bct/bigquery1')
require('bct/bigquery2')
require('bct/etherscan1')
require('bct/etherscan2')
require('bct/greymass1')
require('bct/greymass2')
require('bct/version')

module Bct
  # 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
      Bct::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
      Bct::Bigquery.new(options).mostra_tudo
    end

    default_task :show
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bct-0.1.3 lib/bct.rb