Class: Orias::Client

Inherits:
Base
  • Object
show all
Defined in:
lib/orias/client.rb

Overview

Dedicated to request handling to ORIAS API

Instance Attribute Summary collapse

Instance Method Summary collapse

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_endpointObject

Returns the value of attribute api_endpoint.



5
6
7
# File 'lib/orias/client.rb', line 5

def api_endpoint
  @api_endpoint
end

#per_requestObject

Returns the value of attribute per_request.



5
6
7
# File 'lib/orias/client.rb', line 5

def per_request
  @per_request
end

#private_keyObject

Returns the value of attribute private_key.



5
6
7
# File 'lib/orias/client.rb', line 5

def private_key
  @private_key
end