Class: API::Entities::Hook

Inherits:
Grape::Entity
  • Object
show all
Defined in:
lib/api/entities/hook.rb

Direct Known Subclasses

ProjectHook

Instance Method Summary collapse

Instance Method Details

#custom_headersObject



34
35
36
# File 'lib/api/entities/hook.rb', line 34

def custom_headers
  object.custom_headers.keys.map { { key: _1 } }
end

#url_variablesObject



30
31
32
# File 'lib/api/entities/hook.rb', line 30

def url_variables
  object.url_variables.keys.map { { key: _1 } }
end