Method: Hive::Broadcast.delete_comment

Defined in:
lib/hive/broadcast.rb

.delete_comment(options, &block) ⇒ Object

Deletes a post/comment.

Hive::Broadcast.delete_comment(wif: wif, params: {author: author, permlink: permlink}) do |result|
  puts result
end

Parameters:

  • options (Hash)

    options

Options Hash (options):

  • :wif (String)

    Posting wif

  • :params (Hash)
    • :author (String)

    • :permlink (String)

  • :pretend (Boolean)

    Just validate, do not broadcast.

See Also:



242
243
244
245
246
247
248
249
250
# File 'lib/hive/broadcast.rb', line 242

def self.delete_comment(options, &block)
  required_fields = %i(author permlink)
  params = options[:params]
  check_required_fields(params, *required_fields)
  
  ops = [[:delete_comment, params]]
  
  process(options.merge(ops: ops), &block)
end