Class: Identisure::Vipps::Pending
- Inherits:
-
Object
- Object
- Identisure::Vipps::Pending
- Defined in:
- lib/identisure/vipps.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#ref_id ⇒ Object
readonly
Returns the value of attribute ref_id.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Class Method Summary collapse
Instance Method Summary collapse
- #deconstruct_keys(_) ⇒ Object
-
#initialize(id:, ref_id: nil, url: nil) ⇒ Pending
constructor
A new instance of Pending.
Constructor Details
#initialize(id:, ref_id: nil, url: nil) ⇒ Pending
Returns a new instance of Pending.
51 52 53 |
# File 'lib/identisure/vipps.rb', line 51 def initialize(id:, ref_id: nil, url: nil) @id = id; @ref_id = ref_id; @url = url end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
49 50 51 |
# File 'lib/identisure/vipps.rb', line 49 def id @id end |
#ref_id ⇒ Object (readonly)
Returns the value of attribute ref_id.
49 50 51 |
# File 'lib/identisure/vipps.rb', line 49 def ref_id @ref_id end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
49 50 51 |
# File 'lib/identisure/vipps.rb', line 49 def url @url end |
Class Method Details
.from_json(d) ⇒ Object
57 |
# File 'lib/identisure/vipps.rb', line 57 def self.from_json(d) = new(id: d['id'], ref_id: d['refId'], url: d['url']) |
Instance Method Details
#deconstruct_keys(_) ⇒ Object
55 |
# File 'lib/identisure/vipps.rb', line 55 def deconstruct_keys(_) = { id: @id, ref_id: @ref_id, url: @url } |