Class: Bears Deprecated

Inherits:
Rubybear::Chain show all
Defined in:
lib/bears.rb

Overview

Deprecated.

Using Bears class provided by Rubybear is deprecated. Please use: Rubybear::Chain.new(chain: :bears)

Bears chain client for broadcasting common operations.

See Also:

Constant Summary

Constants inherited from Rubybear::Chain

Rubybear::Chain::VALID_OPTIONS

Instance Method Summary collapse

Methods inherited from Rubybear::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 Rubybear::Mixins::ActsAsWallet

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

Methods included from Rubybear::Mixins::ActsAsVoter

#vote, #vote!

Methods included from Rubybear::Mixins::ActsAsPoster

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

Constructor Details

#initialize(options = {}) ⇒ Bears

Returns a new instance of Bears.



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

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