Class: Identisure::BankIdSe::Completed
- Inherits:
-
Object
- Object
- Identisure::BankIdSe::Completed
- Defined in:
- lib/identisure/bank_id_se.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
Returns the value of attribute address.
-
#authenticated_at ⇒ Object
readonly
Returns the value of attribute authenticated_at.
-
#cert_start_date ⇒ Object
readonly
Returns the value of attribute cert_start_date.
-
#company_signatory_text ⇒ Object
readonly
Returns the value of attribute company_signatory_text.
-
#device ⇒ Object
readonly
Returns the value of attribute device.
-
#given_name ⇒ Object
readonly
Returns the value of attribute given_name.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#ocsp_response ⇒ Object
readonly
Returns the value of attribute ocsp_response.
-
#ref_id ⇒ Object
readonly
Returns the value of attribute ref_id.
-
#risk ⇒ Object
readonly
Returns the value of attribute risk.
-
#signed_at ⇒ Object
readonly
Returns the value of attribute signed_at.
-
#ssn ⇒ Object
readonly
Returns the value of attribute ssn.
-
#step_up ⇒ Object
readonly
Returns the value of attribute step_up.
-
#surname ⇒ Object
readonly
Returns the value of attribute surname.
Class Method Summary collapse
Instance Method Summary collapse
- #deconstruct_keys(_) ⇒ Object
-
#initialize(id:, ssn:, name:, given_name:, surname:, ocsp_response:, ref_id: nil, cert_start_date: nil, risk: nil, device: nil, step_up: nil, address: nil, company_signatory_text: nil, authenticated_at: nil, signed_at: nil) ⇒ Completed
constructor
A new instance of Completed.
Constructor Details
#initialize(id:, ssn:, name:, given_name:, surname:, ocsp_response:, ref_id: nil, cert_start_date: nil, risk: nil, device: nil, step_up: nil, address: nil, company_signatory_text: nil, authenticated_at: nil, signed_at: nil) ⇒ Completed
Returns a new instance of Completed.
192 193 194 195 196 197 198 199 200 201 202 |
# File 'lib/identisure/bank_id_se.rb', line 192 def initialize(id:, ssn:, name:, given_name:, surname:, ocsp_response:, ref_id: nil, cert_start_date: nil, risk: nil, device: nil, step_up: nil, address: nil, company_signatory_text: nil, authenticated_at: nil, signed_at: nil) @id = id; @ref_id = ref_id; @ssn = ssn; @name = name @given_name = given_name; @surname = surname @cert_start_date = cert_start_date; @ocsp_response = ocsp_response @risk = risk; @device = device; @step_up = step_up; @address = address @company_signatory_text = company_signatory_text @authenticated_at = authenticated_at; @signed_at = signed_at end |
Instance Attribute Details
#address ⇒ Object (readonly)
Returns the value of attribute address.
187 188 189 |
# File 'lib/identisure/bank_id_se.rb', line 187 def address @address end |
#authenticated_at ⇒ Object (readonly)
Returns the value of attribute authenticated_at.
187 188 189 |
# File 'lib/identisure/bank_id_se.rb', line 187 def authenticated_at @authenticated_at end |
#cert_start_date ⇒ Object (readonly)
Returns the value of attribute cert_start_date.
187 188 189 |
# File 'lib/identisure/bank_id_se.rb', line 187 def cert_start_date @cert_start_date end |
#company_signatory_text ⇒ Object (readonly)
Returns the value of attribute company_signatory_text.
187 188 189 |
# File 'lib/identisure/bank_id_se.rb', line 187 def company_signatory_text @company_signatory_text end |
#device ⇒ Object (readonly)
Returns the value of attribute device.
187 188 189 |
# File 'lib/identisure/bank_id_se.rb', line 187 def device @device end |
#given_name ⇒ Object (readonly)
Returns the value of attribute given_name.
187 188 189 |
# File 'lib/identisure/bank_id_se.rb', line 187 def given_name @given_name end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
187 188 189 |
# File 'lib/identisure/bank_id_se.rb', line 187 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
187 188 189 |
# File 'lib/identisure/bank_id_se.rb', line 187 def name @name end |
#ocsp_response ⇒ Object (readonly)
Returns the value of attribute ocsp_response.
187 188 189 |
# File 'lib/identisure/bank_id_se.rb', line 187 def ocsp_response @ocsp_response end |
#ref_id ⇒ Object (readonly)
Returns the value of attribute ref_id.
187 188 189 |
# File 'lib/identisure/bank_id_se.rb', line 187 def ref_id @ref_id end |
#risk ⇒ Object (readonly)
Returns the value of attribute risk.
187 188 189 |
# File 'lib/identisure/bank_id_se.rb', line 187 def risk @risk end |
#signed_at ⇒ Object (readonly)
Returns the value of attribute signed_at.
187 188 189 |
# File 'lib/identisure/bank_id_se.rb', line 187 def signed_at @signed_at end |
#ssn ⇒ Object (readonly)
Returns the value of attribute ssn.
187 188 189 |
# File 'lib/identisure/bank_id_se.rb', line 187 def ssn @ssn end |
#step_up ⇒ Object (readonly)
Returns the value of attribute step_up.
187 188 189 |
# File 'lib/identisure/bank_id_se.rb', line 187 def step_up @step_up end |
#surname ⇒ Object (readonly)
Returns the value of attribute surname.
187 188 189 |
# File 'lib/identisure/bank_id_se.rb', line 187 def surname @surname end |
Class Method Details
.from_json(d) ⇒ Object
213 214 215 216 217 218 219 220 221 222 223 |
# File 'lib/identisure/bank_id_se.rb', line 213 def self.from_json(d) new(id: d['id'], ref_id: d['refId'], ssn: d['ssn'], name: d['name'], given_name: d['givenName'], surname: d['surname'], cert_start_date: d['certStartDate'], ocsp_response: d['ocspResponse'], risk: d['risk'], device: d['device'] ? Device.from_json(d['device']) : nil, step_up: d['stepUp'] ? StepUp.from_json(d['stepUp']) : nil, address: d['address'], company_signatory_text: d['companySignatoryText'], authenticated_at: d['authenticatedAt'], signed_at: d['signedAt']) end |
Instance Method Details
#deconstruct_keys(_) ⇒ Object
204 205 206 207 208 209 210 211 |
# File 'lib/identisure/bank_id_se.rb', line 204 def deconstruct_keys(_) { id: @id, ref_id: @ref_id, ssn: @ssn, name: @name, given_name: @given_name, surname: @surname, cert_start_date: @cert_start_date, ocsp_response: @ocsp_response, risk: @risk, device: @device, step_up: @step_up, address: @address, company_signatory_text: @company_signatory_text, authenticated_at: @authenticated_at, signed_at: @signed_at } end |