Class: Identisure::Freja::Pending
- Inherits:
-
Object
- Object
- Identisure::Freja::Pending
- Defined in:
- lib/identisure/freja.rb
Instance Attribute Summary collapse
-
#auto_start_token ⇒ Object
readonly
Returns the value of attribute auto_start_token.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#qr_data ⇒ Object
readonly
Returns the value of attribute qr_data.
-
#ref_id ⇒ Object
readonly
Returns the value of attribute ref_id.
Class Method Summary collapse
Instance Method Summary collapse
- #deconstruct_keys(_) ⇒ Object
-
#initialize(id:, auto_start_token:, qr_data:, ref_id: nil) ⇒ Pending
constructor
A new instance of Pending.
Constructor Details
#initialize(id:, auto_start_token:, qr_data:, ref_id: nil) ⇒ Pending
Returns a new instance of Pending.
88 89 90 91 |
# File 'lib/identisure/freja.rb', line 88 def initialize(id:, auto_start_token:, qr_data:, ref_id: nil) @id = id; @ref_id = ref_id @auto_start_token = auto_start_token; @qr_data = qr_data end |
Instance Attribute Details
#auto_start_token ⇒ Object (readonly)
Returns the value of attribute auto_start_token.
86 87 88 |
# File 'lib/identisure/freja.rb', line 86 def auto_start_token @auto_start_token end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
86 87 88 |
# File 'lib/identisure/freja.rb', line 86 def id @id end |
#qr_data ⇒ Object (readonly)
Returns the value of attribute qr_data.
86 87 88 |
# File 'lib/identisure/freja.rb', line 86 def qr_data @qr_data end |
#ref_id ⇒ Object (readonly)
Returns the value of attribute ref_id.
86 87 88 |
# File 'lib/identisure/freja.rb', line 86 def ref_id @ref_id end |
Class Method Details
.from_json(d) ⇒ Object
97 98 99 100 |
# File 'lib/identisure/freja.rb', line 97 def self.from_json(d) new(id: d['id'], ref_id: d['refId'], auto_start_token: d['autoStartToken'], qr_data: d['qrData']) end |
Instance Method Details
#deconstruct_keys(_) ⇒ Object
93 94 95 |
# File 'lib/identisure/freja.rb', line 93 def deconstruct_keys(_) { id: @id, ref_id: @ref_id, auto_start_token: @auto_start_token, qr_data: @qr_data } end |