Class: Veriff::Media
Instance Method Summary collapse
Methods inherited from Model
api_collection_name, #initialize, #method_missing, #respond_to_missing?
Constructor Details
This class inherits a constructor from Veriff::Model
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Veriff::Model
Instance Method Details
#file ⇒ Object
6 7 8 |
# File 'lib/veriff/media.rb', line 6 def file StringIO.new(Veriff.get("/media/#{id}", signature: id).body) end |
#timestamp ⇒ Object
10 11 12 |
# File 'lib/veriff/media.rb', line 10 def ||= Timestamp.new(@data_hash[:timestamp]) end |