class GVIVE::Identities
Attributes
data[RW]
id[RW]
photo[RW]
response[RW]
signature[RW]
Public Class Methods
new(id, photo = false, signature = false)
click to toggle source
Identity
classes have 3 common requirements
-
ID to search
-
Option to return a Base64Encoded Image of the ID
-
Option to return a Base64Encoded Signature of the ID
Optionally specify whether you want to return a Base64Encoded Photo Optionally specify whether you want to return a Base64Encoded Signature @param [String] id @param [Boolean] photo @param [Boolean] signature
# File lib/gvive/identities.rb, line 16 def initialize(id, photo = false, signature = false) @id = id @photo = photo @signature = signature end
Public Instance Methods
id_params(params = {})
click to toggle source
Automatically merge photo & signature into the request We don't want to repeat this across all subclasses :)
# File lib/gvive/identities.rb, line 24 def id_params(params = {}) params.merge(incp: @photo, incs: @signature) end