Class: Cns::Greymass
Overview
classe para processar transacoes do greymass
Constant Summary collapse
- TT =
{sork: :itx, adjk: :itx}.freeze
Instance Attribute Summary collapse
- #bqd ⇒ Array<Hash>, Thor::CoreExt::HashWithIndifferentAccess readonly
- #ops ⇒ Array<Hash>, Thor::CoreExt::HashWithIndifferentAccess readonly
Instance Method Summary collapse
-
#initialize(dad, pop) ⇒ Greymass
constructor
A new instance of Greymass.
-
#mresumo ⇒ Object
Display summary of wallets, transactions, and adjustment days configuration.
Constructor Details
#initialize(dad, pop) ⇒ Greymass
Returns a new instance of Greymass.
22 23 24 25 |
# File 'lib/cns/greymass.rb', line 22 def initialize(dad, pop) @bqd = dad @ops = pop.transform_keys(&:to_sym) end |
Instance Attribute Details
#bqd ⇒ Array<Hash>, Thor::CoreExt::HashWithIndifferentAccess (readonly)
13 14 15 |
# File 'lib/cns/greymass.rb', line 13 def bqd @bqd end |
#ops ⇒ Array<Hash>, Thor::CoreExt::HashWithIndifferentAccess (readonly)
13 14 15 |
# File 'lib/cns/greymass.rb', line 13 def ops @ops end |
Instance Method Details
#mresumo ⇒ Object
Display summary of wallets, transactions, and adjustment days configuration
28 29 30 31 32 33 34 35 |
# File 'lib/cns/greymass.rb', line 28 def mresumo return unless bqexd.any? puts("\naddress greymass ntx bigquery ntx") bqexd.each { |e| puts(foct(e)) } mtransacoes_novas mconfiguracao_ajuste_dias end |