Class: Veriff::Media

Inherits:
Model
  • Object
show all
Defined in:
lib/veriff/media.rb

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

#fileObject



6
7
8
# File 'lib/veriff/media.rb', line 6

def file
  StringIO.new(Veriff.get("/media/#{id}", signature: id).body)
end

#timestampObject



10
11
12
# File 'lib/veriff/media.rb', line 10

def timestamp
  @timestamp ||= Timestamp.new(@data_hash[:timestamp])
end