Class: MdmCSR::Certificate

Inherits:
Object
  • Object
show all
Defined in:
lib/mdmCSR.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#cityObject (readonly)

Returns the value of attribute city.



8
9
10
# File 'lib/mdmCSR.rb', line 8

def city
  @city
end

#common_nameObject (readonly)

Returns the value of attribute common_name.



8
9
10
# File 'lib/mdmCSR.rb', line 8

def common_name
  @common_name
end

#countryObject (readonly)

Returns the value of attribute country.



8
9
10
# File 'lib/mdmCSR.rb', line 8

def country
  @country
end

#departmentObject (readonly)

Returns the value of attribute department.



8
9
10
# File 'lib/mdmCSR.rb', line 8

def department
  @department
end

#emailObject (readonly)

Returns the value of attribute email.



8
9
10
# File 'lib/mdmCSR.rb', line 8

def email
  @email
end

#organizationObject (readonly)

Returns the value of attribute organization.



8
9
10
# File 'lib/mdmCSR.rb', line 8

def organization
  @organization
end

#stateObject (readonly)

Returns the value of attribute state.



8
9
10
# File 'lib/mdmCSR.rb', line 8

def state
  @state
end