Class: Identisure::BankIdSe::Pending
- Inherits:
-
Object
- Object
- Identisure::BankIdSe::Pending
- Defined in:
- lib/identisure/bank_id_se.rb
Overview
--- Status variants ---
Instance Attribute Summary collapse
-
#auto_start_token ⇒ Object
readonly
Returns the value of attribute auto_start_token.
-
#hint_code ⇒ Object
readonly
Returns the value of attribute hint_code.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#qr_start_secret ⇒ Object
readonly
Returns the value of attribute qr_start_secret.
-
#qr_start_token ⇒ Object
readonly
Returns the value of attribute qr_start_token.
-
#ref_id ⇒ Object
readonly
Returns the value of attribute ref_id.
Class Method Summary collapse
Instance Method Summary collapse
- #deconstruct_keys(_) ⇒ Object
-
#initialize(id:, ref_id: nil, auto_start_token: nil, qr_start_token: nil, qr_start_secret: nil, hint_code: nil) ⇒ Pending
constructor
A new instance of Pending.
Constructor Details
#initialize(id:, ref_id: nil, auto_start_token: nil, qr_start_token: nil, qr_start_secret: nil, hint_code: nil) ⇒ Pending
Returns a new instance of Pending.
128 129 130 131 132 133 |
# File 'lib/identisure/bank_id_se.rb', line 128 def initialize(id:, ref_id: nil, auto_start_token: nil, qr_start_token: nil, qr_start_secret: nil, hint_code: nil) @id = id; @ref_id = ref_id; @auto_start_token = auto_start_token @qr_start_token = qr_start_token; @qr_start_secret = qr_start_secret @hint_code = hint_code end |
Instance Attribute Details
#auto_start_token ⇒ Object (readonly)
Returns the value of attribute auto_start_token.
126 127 128 |
# File 'lib/identisure/bank_id_se.rb', line 126 def auto_start_token @auto_start_token end |
#hint_code ⇒ Object (readonly)
Returns the value of attribute hint_code.
126 127 128 |
# File 'lib/identisure/bank_id_se.rb', line 126 def hint_code @hint_code end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
126 127 128 |
# File 'lib/identisure/bank_id_se.rb', line 126 def id @id end |
#qr_start_secret ⇒ Object (readonly)
Returns the value of attribute qr_start_secret.
126 127 128 |
# File 'lib/identisure/bank_id_se.rb', line 126 def qr_start_secret @qr_start_secret end |
#qr_start_token ⇒ Object (readonly)
Returns the value of attribute qr_start_token.
126 127 128 |
# File 'lib/identisure/bank_id_se.rb', line 126 def qr_start_token @qr_start_token end |
#ref_id ⇒ Object (readonly)
Returns the value of attribute ref_id.
126 127 128 |
# File 'lib/identisure/bank_id_se.rb', line 126 def ref_id @ref_id end |
Class Method Details
.from_json(d) ⇒ Object
141 142 143 144 145 |
# File 'lib/identisure/bank_id_se.rb', line 141 def self.from_json(d) new(id: d['id'], ref_id: d['refId'], auto_start_token: d['autoStartToken'], qr_start_token: d['qrStartToken'], qr_start_secret: d['qrStartSecret'], hint_code: d['hintCode']) end |
Instance Method Details
#deconstruct_keys(_) ⇒ Object
135 136 137 138 139 |
# File 'lib/identisure/bank_id_se.rb', line 135 def deconstruct_keys(_) { id: @id, ref_id: @ref_id, auto_start_token: @auto_start_token, qr_start_token: @qr_start_token, qr_start_secret: @qr_start_secret, hint_code: @hint_code } end |