Class: OktaAppSerializer

Inherits:
ActiveModel::Serializer
  • Object
show all
Defined in:
app/serializers/okta_app_serializer.rb

Instance Method Summary collapse

Instance Method Details

#grantsObject



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