Class: Identisure::Freja::SignRequest
- Inherits:
-
Object
- Object
- Identisure::Freja::SignRequest
- Defined in:
- lib/identisure/freja.rb
Instance Attribute Summary collapse
-
#callback_url ⇒ Object
readonly
Returns the value of attribute callback_url.
-
#min_registration_level ⇒ Object
readonly
Returns the value of attribute min_registration_level.
-
#org_number ⇒ Object
readonly
Returns the value of attribute org_number.
-
#ref_id ⇒ Object
readonly
Returns the value of attribute ref_id.
-
#request_address ⇒ Object
readonly
Returns the value of attribute request_address.
-
#ssn ⇒ Object
readonly
Returns the value of attribute ssn.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text:, ssn: nil, callback_url: nil, min_registration_level: nil, org_number: nil, request_address: nil, ref_id: nil) ⇒ SignRequest
constructor
A new instance of SignRequest.
- #to_h ⇒ Object
Constructor Details
#initialize(text:, ssn: nil, callback_url: nil, min_registration_level: nil, org_number: nil, request_address: nil, ref_id: nil) ⇒ SignRequest
Returns a new instance of SignRequest.
49 50 51 52 53 54 |
# File 'lib/identisure/freja.rb', line 49 def initialize(text:, ssn: nil, callback_url: nil, min_registration_level: nil, org_number: nil, request_address: nil, ref_id: nil) @text = text; @ssn = ssn; @callback_url = callback_url @min_registration_level = min_registration_level; @org_number = org_number @request_address = request_address; @ref_id = ref_id end |
Instance Attribute Details
#callback_url ⇒ Object (readonly)
Returns the value of attribute callback_url.
46 47 48 |
# File 'lib/identisure/freja.rb', line 46 def callback_url @callback_url end |
#min_registration_level ⇒ Object (readonly)
Returns the value of attribute min_registration_level.
46 47 48 |
# File 'lib/identisure/freja.rb', line 46 def min_registration_level @min_registration_level end |
#org_number ⇒ Object (readonly)
Returns the value of attribute org_number.
46 47 48 |
# File 'lib/identisure/freja.rb', line 46 def org_number @org_number end |
#ref_id ⇒ Object (readonly)
Returns the value of attribute ref_id.
46 47 48 |
# File 'lib/identisure/freja.rb', line 46 def ref_id @ref_id end |
#request_address ⇒ Object (readonly)
Returns the value of attribute request_address.
46 47 48 |
# File 'lib/identisure/freja.rb', line 46 def request_address @request_address end |
#ssn ⇒ Object (readonly)
Returns the value of attribute ssn.
46 47 48 |
# File 'lib/identisure/freja.rb', line 46 def ssn @ssn end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
46 47 48 |
# File 'lib/identisure/freja.rb', line 46 def text @text end |
Instance Method Details
#to_h ⇒ Object
56 57 58 59 60 61 62 |
# File 'lib/identisure/freja.rb', line 56 def to_h { text: @text, ssn: @ssn, callbackUrl: @callback_url, minRegistrationLevel: @min_registration_level, orgNumber: @org_number, requestAddress: @request_address, refId: @ref_id }.compact end |