Class: Passfort::Endpoint::Tasks

Inherits:
Object
  • Object
show all
Defined in:
lib/passfort/endpoint/tasks.rb

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Tasks

Returns a new instance of Tasks.



6
7
8
# File 'lib/passfort/endpoint/tasks.rb', line 6

def initialize(client)
  @client = client
end

Instance Method Details

#find(profile_id:, task_id:) ⇒ Object



10
11
12
13
# File 'lib/passfort/endpoint/tasks.rb', line 10

def find(profile_id:, task_id:)
  response = @client.get("/profiles/#{profile_id}/tasks/#{task_id}")
  Passfort::Resource::Task.new(response)
end