class PkiExpress::TrustServiceSessionResult
Attributes
custom_state[RW]
expires_on[RW]
service[RW]
session[RW]
session_type[RW]
Public Class Methods
new(model)
click to toggle source
# File lib/pki_express/trust_service_session_result.rb, line 9 def initialize(model) @session = nil @custom_state = nil @service = nil @session_type = nil @expires_on = nil unless model.nil? @session = model.fetch(:session) @custom_state = model.fetch(:customState) @service = model.fetch(:service) @session_type = model.fetch(:type) expires_on = model.fetch(:expiresOn) if expires_on @expires_on = DateTime.iso8601(expires_on) end end end