You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
484 B

8 years ago
8 years ago
  1. module Mastodon
  2. module Entities
  3. class Account < Grape::Entity
  4. expose :username
  5. expose :domain
  6. expose :display_name
  7. expose :note
  8. end
  9. class Status < Grape::Entity
  10. format_with(:iso_timestamp) { |dt| dt.iso8601 }
  11. expose :uri
  12. expose :text
  13. expose :account, using: Mastodon::Entities::Account
  14. with_options(format_with: :iso_timestamp) do
  15. expose :created_at
  16. expose :updated_at
  17. end
  18. end
  19. end
  20. end