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.

21 lines
438 B

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