Class: DynamicPDFApi::Endpoint
- Inherits:
-
Object
- Object
- DynamicPDFApi::Endpoint
- 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.
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
-
#_endpoint_name ⇒ Object
Returns the value of attribute _endpoint_name.
-
#api_key ⇒ Object
Gets or sets api key.
-
#base_url ⇒ Object
Gets or sets base url for the api.
Instance Method Summary collapse
- #init ⇒ Object
-
#initialize ⇒ Endpoint
constructor
A new instance of Endpoint.
Constructor Details
#initialize ⇒ Endpoint
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_name ⇒ Object
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_key ⇒ Object
Gets or sets api key.
34 35 36 |
# File 'lib/ruby_client/Endpoint.rb', line 34 def api_key @api_key end |
#base_url ⇒ Object
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
#init ⇒ Object
36 |
# File 'lib/ruby_client/Endpoint.rb', line 36 def init; end |