Class: Redaction::Types::Basic

Inherits:
Base
  • Object
show all
Defined in:
lib/redaction/types/basic.rb

Instance Attribute Summary

Attributes inherited from Base

#data, #record

Instance Method Summary collapse

Methods inherited from Base

call, #initialize

Constructor Details

This class inherits a constructor from Redaction::Types::Base

Instance Method Details

#contentObject



6
7
8
# File 'lib/redaction/types/basic.rb', line 6

def content
  Faker::Lorem.sentence(word_count: rand(3..10)).gsub(/\.$/, "")
end