Class: ActiveGraphql::Client::Adapters::FormatMultipartVariables
- Inherits:
-
Object
- Object
- ActiveGraphql::Client::Adapters::FormatMultipartVariables
- Defined in:
- lib/active_graphql/client/adapters/format_multipart_variables.rb
Overview
Converts deeply nested File instances to Faraday::UploadIO
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(variables) ⇒ FormatMultipartVariables
constructor
A new instance of FormatMultipartVariables.
Constructor Details
#initialize(variables) ⇒ FormatMultipartVariables
Returns a new instance of FormatMultipartVariables.
14 15 16 |
# File 'lib/active_graphql/client/adapters/format_multipart_variables.rb', line 14 def initialize(variables) @variables = variables end |
Instance Method Details
#call ⇒ Object
18 19 20 21 22 |
# File 'lib/active_graphql/client/adapters/format_multipart_variables.rb', line 18 def call deep_transform_values(variables) do |variable| variable_value(variable) end end |