Class: SmartId::AuthenticationCertificate::Content
- Inherits:
-
Object
- Object
- SmartId::AuthenticationCertificate::Content
- Defined in:
- lib/smart_id/authentication_certificate/content.rb
Instance Method Summary collapse
- #all_info ⇒ Object
- #country ⇒ Object
- #given_name ⇒ Object
-
#initialize(raw_content) ⇒ Content
constructor
A new instance of Content.
- #organizational_unit ⇒ Object
- #serial_number ⇒ Object
- #surname ⇒ Object
Constructor Details
#initialize(raw_content) ⇒ Content
Returns a new instance of Content.
4 5 6 |
# File 'lib/smart_id/authentication_certificate/content.rb', line 4 def initialize(raw_content) @raw_content = raw_content end |
Instance Method Details
#all_info ⇒ Object
20 21 22 |
# File 'lib/smart_id/authentication_certificate/content.rb', line 20 def all_info structured_raw_content["CN"] end |
#country ⇒ Object
16 17 18 |
# File 'lib/smart_id/authentication_certificate/content.rb', line 16 def country structured_raw_content["C"].gsub(",", " ") end |
#given_name ⇒ Object
8 9 10 |
# File 'lib/smart_id/authentication_certificate/content.rb', line 8 def given_name structured_raw_content["GN"].gsub(",", " ") end |
#organizational_unit ⇒ Object
24 25 26 |
# File 'lib/smart_id/authentication_certificate/content.rb', line 24 def organizational_unit structured_raw_content["OU"] end |
#serial_number ⇒ Object
28 29 30 |
# File 'lib/smart_id/authentication_certificate/content.rb', line 28 def serial_number structured_raw_content["serialNumber"] end |
#surname ⇒ Object
12 13 14 |
# File 'lib/smart_id/authentication_certificate/content.rb', line 12 def surname structured_raw_content["SN"].gsub(",", " ") end |