Class: MdmCSR::Certificate
- Inherits:
-
Object
- Object
- MdmCSR::Certificate
- Defined in:
- lib/mdmCSR.rb
Instance Attribute Summary collapse
-
#city ⇒ Object
readonly
Returns the value of attribute city.
-
#common_name ⇒ Object
readonly
Returns the value of attribute common_name.
-
#country ⇒ Object
readonly
Returns the value of attribute country.
-
#department ⇒ Object
readonly
Returns the value of attribute department.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#organization ⇒ Object
readonly
Returns the value of attribute organization.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
Instance Method Summary collapse
-
#initialize(country:, state:, city:, department:, organization:, common_name:, email:) ⇒ Certificate
constructor
A new instance of Certificate.
Constructor Details
#initialize(country:, state:, city:, department:, organization:, common_name:, email:) ⇒ Certificate
Returns a new instance of Certificate.
11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/mdmCSR.rb', line 11 def initialize(country:, state:, city:, department:, organization:, common_name:, email:) @country = country @state = state @city = city @department = department @organization = organization @common_name = common_name @email = email generate_csr end |
Instance Attribute Details
#city ⇒ Object (readonly)
Returns the value of attribute city.
8 9 10 |
# File 'lib/mdmCSR.rb', line 8 def city @city end |
#common_name ⇒ Object (readonly)
Returns the value of attribute common_name.
8 9 10 |
# File 'lib/mdmCSR.rb', line 8 def common_name @common_name end |
#country ⇒ Object (readonly)
Returns the value of attribute country.
8 9 10 |
# File 'lib/mdmCSR.rb', line 8 def country @country end |
#department ⇒ Object (readonly)
Returns the value of attribute department.
8 9 10 |
# File 'lib/mdmCSR.rb', line 8 def department @department end |
#email ⇒ Object (readonly)
Returns the value of attribute email.
8 9 10 |
# File 'lib/mdmCSR.rb', line 8 def email @email end |
#organization ⇒ Object (readonly)
Returns the value of attribute organization.
8 9 10 |
# File 'lib/mdmCSR.rb', line 8 def organization @organization end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
8 9 10 |
# File 'lib/mdmCSR.rb', line 8 def state @state end |