class GVIVE::Identity::Passport
Public Class Methods
new(passport_id, photo = false, signature = false)
click to toggle source
Passport
ID number required Optionally specify whether you want to return a Base64Encoded Photo Optionally specify whether you want to return a Base64Encoded signature @param [String] passport_id @param [Boolean] photo @param [Boolean] signature
Calls superclass method
GVIVE::Identities::new
# File lib/gvive/identity/passport.rb, line 11 def initialize(passport_id, photo = false, signature = false) super(passport_id, photo, signature) end
Public Instance Methods
valid?()
click to toggle source
Implementing valid? method signature as described in Identity
Class
# File lib/gvive/identity/passport.rb, line 16 def valid? @response = gvive_request(passport_endpoint, id_params({ pid: @id })) @data = @response.to_o @response.success? end