Class: PersonaApi::FilesResource
- Defined in:
- lib/persona_api/resources/files.rb
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
Methods inherited from Resource
#delete_request, #get_request, #handle_response, #initialize, #patch_request, #post_request, #put_request
Constructor Details
This class inherits a constructor from PersonaApi::Resource
Instance Method Details
#download(file_id:, file_name:) ⇒ Object
3 4 5 6 |
# File 'lib/persona_api/resources/files.rb', line 3 def download(file_id:, file_name:) get_request("files/#{file_id}/#{file_name}").body.dig("data") true end |