Class: OktaAppSerializer
- Inherits:
-
ActiveModel::Serializer
- Object
- ActiveModel::Serializer
- OktaAppSerializer
- Defined in:
- app/serializers/okta_app_serializer.rb
Instance Method Summary collapse
Instance Method Details
#grants ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'app/serializers/okta_app_serializer.rb', line 6 def grants object.grants.map do |grant| { title: grant['_links']['scope']['title'], id: grant['id'], created: grant['created'] } end end |