Class: DynamicPDFApi::Endpoint

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_client/Endpoint.rb

Overview

Represents the base class for endpoint and has settings for base url, api key and creates a rest request object.

Direct Known Subclasses

DlexLayout, ImageInfo, Pdf, PdfImage, PdfInfo, PdfText, PdfXmp

Constant Summary collapse

@@default_base_url =

Gets or sets default base url.

'https://api.dynamicpdf.com'
@@default_api_key =

Gets or sets default api key.

nil

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeEndpoint

Returns a new instance of Endpoint.



7
8
9
10
11
12
# File 'lib/ruby_client/Endpoint.rb', line 7

def initialize
  @_client = nil
  @enable_logging = false
  @api_key = @@default_api_key
  @base_url = @@default_base_url
end

Instance Attribute Details

#_endpoint_nameObject

Returns the value of attribute _endpoint_name.



14
15
16
# File 'lib/ruby_client/Endpoint.rb', line 14

def _endpoint_name
  @_endpoint_name
end

#api_keyObject

Gets or sets api key.



34
35
36
# File 'lib/ruby_client/Endpoint.rb', line 34

def api_key
  @api_key
end

#base_urlObject

Gets or sets base url for the api.



29
30
31
# File 'lib/ruby_client/Endpoint.rb', line 29

def base_url
  @base_url
end

Instance Method Details

#initObject



36
# File 'lib/ruby_client/Endpoint.rb', line 36

def init; end