Class: Voilk Deprecated

Inherits:
VoilkRuby::Chain show all
Defined in:
lib/voilk.rb

Overview

Deprecated.

Using Voilk class provided by VoilkRuby is deprecated. Please use: VoilkRuby::Chain.new(chain: :voilk)

Voilk chain client for broadcasting common operations.

See Also:

Constant Summary

Constants inherited from VoilkRuby::Chain

VoilkRuby::Chain::VALID_OPTIONS

Instance Method Summary collapse

Methods inherited from VoilkRuby::Chain

#base_per_debt, #base_per_mcoin, #block_time, #broadcast!, #find_account, #find_block, #find_comment, #followed_by, #following, parse_slug, #properties, #reset, #reset_operations, #reset_properties

Methods included from VoilkRuby::Mixins::ActsAsWallet

#claim_reward_balance, #claim_reward_balance!, #transfer, #transfer!

Methods included from VoilkRuby::Mixins::ActsAsVoter

#vote, #vote!

Methods included from VoilkRuby::Mixins::ActsAsPoster

#delete_comment, #delete_comment!, #post, #post!

Constructor Details

#initialize(options = {}) ⇒ Voilk

Returns a new instance of Voilk.



6
7
8
9
10
11
12
13
# File 'lib/voilk.rb', line 6

def initialize(options = {})
  unless defined? @@deprecated_warning_shown
    warn "[DEPRECATED] Using Voilk class provided by VoilkRuby is deprecated.  Please use: VoilkRuby::Chain.new(chain: :voilk)"
    @@deprecated_warning_shown = true
  end
  
  super(options.merge(chain: :voilk))
end