Class: Microsoft::Graph::BodyFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/microsoft/graph/body_formatter.rb

Instance Method Summary collapse

Instance Method Details

#call(body, method:) ⇒ Object



6
7
8
9
10
11
# File 'lib/microsoft/graph/body_formatter.rb', line 6

def call(body, method:)
  return nil unless Microsoft::Graph::BODY_METHODS.include?(method)
  return nil unless body

  body.transform_keys(&method(:camelize))
end