Class: Clerk::Resources::Clients
- Inherits:
-
Object
- Object
- Clerk::Resources::Clients
- Extended by:
- Forwardable
- Defined in:
- lib/clerk/resources/clients.rb
Instance Method Summary collapse
-
#initialize(client) ⇒ Clients
constructor
A new instance of Clients.
- #verify_token(token) ⇒ Object
Constructor Details
#initialize(client) ⇒ Clients
Returns a new instance of Clients.
9 10 11 12 |
# File 'lib/clerk/resources/clients.rb', line 9 def initialize(client) @client = client @resource = PluralResource.new(client, "clients") end |
Instance Method Details
#verify_token(token) ⇒ Object
14 15 16 17 |
# File 'lib/clerk/resources/clients.rb', line 14 def verify_token(token) @client.request(:post, "#{@resource.collection_path}/verify", body: {token: token}) end |