Class: DiscourseDev::Tag
Constant Summary
Constants inherited from Record
Instance Attribute Summary
Attributes inherited from Record
Instance Method Summary collapse
- #data ⇒ Object
-
#initialize(count = DEFAULT_COUNT) ⇒ Tag
constructor
A new instance of Tag.
Methods inherited from Record
#create!, #current_count, #index, #populate!, populate!, random
Constructor Details
#initialize(count = DEFAULT_COUNT) ⇒ Tag
Returns a new instance of Tag.
10 11 12 |
# File 'lib/discourse_dev/tag.rb', line 10 def initialize(count = DEFAULT_COUNT) super(::Tag, count) end |
Instance Method Details
#data ⇒ Object
14 15 16 17 18 |
# File 'lib/discourse_dev/tag.rb', line 14 def data { name: Faker::Discourse.unique.tag, } end |