Class: Identisure::BankIdSe::PendingPhone
- Inherits:
-
Object
- Object
- Identisure::BankIdSe::PendingPhone
- Defined in:
- lib/identisure/bank_id_se.rb
Instance Attribute Summary collapse
-
#hint_code ⇒ Object
readonly
Returns the value of attribute hint_code.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#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, hint_code: nil) ⇒ PendingPhone
constructor
A new instance of PendingPhone.
Constructor Details
#initialize(id:, ref_id: nil, hint_code: nil) ⇒ PendingPhone
Returns a new instance of PendingPhone.
151 152 153 |
# File 'lib/identisure/bank_id_se.rb', line 151 def initialize(id:, ref_id: nil, hint_code: nil) @id = id; @ref_id = ref_id; @hint_code = hint_code end |
Instance Attribute Details
#hint_code ⇒ Object (readonly)
Returns the value of attribute hint_code.
149 150 151 |
# File 'lib/identisure/bank_id_se.rb', line 149 def hint_code @hint_code end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
149 150 151 |
# File 'lib/identisure/bank_id_se.rb', line 149 def id @id end |
#ref_id ⇒ Object (readonly)
Returns the value of attribute ref_id.
149 150 151 |
# File 'lib/identisure/bank_id_se.rb', line 149 def ref_id @ref_id end |
Class Method Details
.from_json(d) ⇒ Object
157 158 159 |
# File 'lib/identisure/bank_id_se.rb', line 157 def self.from_json(d) new(id: d['id'], ref_id: d['refId'], hint_code: d['hintCode']) end |
Instance Method Details
#deconstruct_keys(_) ⇒ Object
155 |
# File 'lib/identisure/bank_id_se.rb', line 155 def deconstruct_keys(_) = { id: @id, ref_id: @ref_id, hint_code: @hint_code } |