Class: Persona::Client
- Inherits:
-
Object
- Object
- Persona::Client
- Includes:
- Actions::Inquiries
- Defined in:
- lib/persona-ruby/client.rb
Constant Summary collapse
- BASE_URL =
"https://withpersona.com/api/v1"
Instance Attribute Summary collapse
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
- #connection ⇒ Object
-
#initialize(access_token:) ⇒ Client
constructor
A new instance of Client.
Methods included from Actions::Inquiries
#inquiry_create, #inquiry_delete, #inquiry_get, #inquiry_list, #inquiry_one_time_link, #inquiry_update
Constructor Details
Instance Attribute Details
#url ⇒ Object (readonly)
Returns the value of attribute url.
6 7 8 |
# File 'lib/persona-ruby/client.rb', line 6 def url @url end |
Instance Method Details
#connection ⇒ Object
15 16 17 |
# File 'lib/persona-ruby/client.rb', line 15 def connection Connection.new(@url, @access_token) end |