Class: Identisure::MitId::SignRequest
- Inherits:
-
Object
- Object
- Identisure::MitId::SignRequest
- Defined in:
- lib/identisure/mit_id.rb
Instance Attribute Summary collapse
-
#redirect_url ⇒ Object
readonly
Returns the value of attribute redirect_url.
-
#ref_id ⇒ Object
readonly
Returns the value of attribute ref_id.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text:, redirect_url: nil, ref_id: nil) ⇒ SignRequest
constructor
A new instance of SignRequest.
- #to_h ⇒ Object
Constructor Details
#initialize(text:, redirect_url: nil, ref_id: nil) ⇒ SignRequest
Returns a new instance of SignRequest.
44 45 46 |
# File 'lib/identisure/mit_id.rb', line 44 def initialize(text:, redirect_url: nil, ref_id: nil) @text = text; @redirect_url = redirect_url; @ref_id = ref_id end |
Instance Attribute Details
#redirect_url ⇒ Object (readonly)
Returns the value of attribute redirect_url.
42 43 44 |
# File 'lib/identisure/mit_id.rb', line 42 def redirect_url @redirect_url end |
#ref_id ⇒ Object (readonly)
Returns the value of attribute ref_id.
42 43 44 |
# File 'lib/identisure/mit_id.rb', line 42 def ref_id @ref_id end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
42 43 44 |
# File 'lib/identisure/mit_id.rb', line 42 def text @text end |
Instance Method Details
#to_h ⇒ Object
48 49 50 |
# File 'lib/identisure/mit_id.rb', line 48 def to_h { text: @text, redirectUrl: @redirect_url, refId: @ref_id }.compact end |