Class: GenesisRuby::Api::Requests::Base::Graphql

Inherits:
Versioned show all
Defined in:
lib/genesis_ruby/api/requests/base/graphql.rb

Overview

Base class for GraphQL API services

Direct Known Subclasses

NonFinancial::BillingApi::Transactions

Constant Summary

Constants inherited from GenesisRuby::Api::Request

GenesisRuby::Api::Request::AUTH_TYPE_BASIC, GenesisRuby::Api::Request::AUTH_TYPE_TOKEN, GenesisRuby::Api::Request::METHOD_GET, GenesisRuby::Api::Request::METHOD_PATCH, GenesisRuby::Api::Request::METHOD_POST, GenesisRuby::Api::Request::METHOD_PUT, GenesisRuby::Api::Request::PORT_HTTPS, GenesisRuby::Api::Request::PROTOCOL_HTTPS

Instance Attribute Summary

Attributes inherited from Versioned

#allowed_versions, #version

Attributes inherited from GenesisRuby::Api::Request

#api_config

Instance Method Summary collapse

Methods inherited from GenesisRuby::Api::Request

#build_document

Constructor Details

#initialize(configuration, builder_interface = Builder::GRAPHQL) ⇒ Graphql

GraphQL base class constructor



11
12
13
14
15
16
# File 'lib/genesis_ruby/api/requests/base/graphql.rb', line 11

def initialize(configuration, builder_interface = Builder::GRAPHQL)
  super configuration, builder_interface

  @root_key     = 'query'
  @request_name = ''
end