Class: DiscourseDev::Tag

Inherits:
Record
  • Object
show all
Defined in:
lib/discourse_dev/tag.rb

Constant Summary

Constants inherited from Record

Record::DEFAULT_COUNT

Instance Attribute Summary

Attributes inherited from Record

#model, #type

Instance Method Summary collapse

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

#dataObject



14
15
16
17
18
# File 'lib/discourse_dev/tag.rb', line 14

def data
  {
    name: Faker::Discourse.unique.tag,
  }
end