Class: Lucid::Shopify::GraphQLPostRequest
- Defined in:
- lib/lucid/shopify/graphql_post_request.rb
Instance Method Summary collapse
-
#initialize(credentials, query, variables: {}) ⇒ GraphQLPostRequest
constructor
A new instance of GraphQLPostRequest.
Methods inherited from Request
#credentials, #http_headers, #http_method, #options, #path, #url
Constructor Details
#initialize(credentials, query, variables: {}) ⇒ GraphQLPostRequest
Returns a new instance of GraphQLPostRequest.
16 17 18 19 20 21 |
# File 'lib/lucid/shopify/graphql_post_request.rb', line 16 def initialize(credentials, query, variables: {}) super(credentials, :post, 'graphql', json: { query: query, variables: variables, }) end |