Debian Codegraph @

plugin/mastodon/model/tag.rb

raw symbols SCIP
1 module Plugin::Mastodon
2 # https://github.com/tootsuite/documentation/blob/master/Using-the-API/API.md#tag
3 class Tag < Diva::Model
4 register :mastodon_tag, name: Plugin[:mastodon]._('Mastodonă‚¿ă‚°')
5
6 field.string :name, required: true
7 field.uri :url, required: true
8
9 def description
10 "##{name}"
11 end
12
13 def path
14 "/#{name}"
15 end
16
17 def inspect
18 "mastodon-tag(#{name})"
19 end
20 end
21 end