class Upwork::Api::Routers::Graphql

Execute GraphQL requests

Constants

ENTRY_POINT

Public Class Methods

new(client) click to toggle source

Init

Arguments:

client: (Client)
# File lib/upwork/api/routers/graphql.rb, line 25
def initialize(client)
  @client = client
  @client.epoint = ENTRY_POINT 
end

Public Instance Methods

execute(params) click to toggle source

Execute GraphQL request

# File lib/upwork/api/routers/graphql.rb, line 31
def execute(params)
  $LOG.i "running " + __method__.to_s
  @client.post '', params
end