| 1 | module Plugin::Mastodon |
| 2 | # https://github.com/tootsuite/documentation/blob/master/Using-the-API/API.md#application |
| 3 | class Application < Diva::Model |
| 4 | register :mastodon_application, name: "Mastodonアプリケーション" |
| 5 | |
| 6 | field.string :name, required: true |
| 7 | field.uri :website |
| 8 | |
| 9 | def inspect |
| 10 | "mastodon-application(#{name})" |
| 11 | end |
| 12 | end |
| 13 | end |