Class: Orias::Client
Overview
Dedicated to request handling to ORIAS API
Instance Attribute Summary collapse
-
#api_endpoint ⇒ Object
Returns the value of attribute api_endpoint.
-
#per_request ⇒ Object
Returns the value of attribute per_request.
-
#private_key ⇒ Object
Returns the value of attribute private_key.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Client
constructor
Initialize an Orias::Client instance.
Constructor Details
#initialize(attributes = {}) ⇒ Client
Initialize an Orias::Client instance
8 9 10 11 12 13 |
# File 'lib/orias/client.rb', line 8 def initialize(attributes = {}) super @api_endpoint ||= Orias.configuration.api_endpoint @per_request ||= Orias.configuration.per_request @private_key ||= Orias.configuration.private_key end |
Instance Attribute Details
#api_endpoint ⇒ Object
Returns the value of attribute api_endpoint.
5 6 7 |
# File 'lib/orias/client.rb', line 5 def api_endpoint @api_endpoint end |
#per_request ⇒ Object
Returns the value of attribute per_request.
5 6 7 |
# File 'lib/orias/client.rb', line 5 def per_request @per_request end |
#private_key ⇒ Object
Returns the value of attribute private_key.
5 6 7 |
# File 'lib/orias/client.rb', line 5 def private_key @private_key end |