Class: Xolphin::Api::CertificateRequests::CreateCertificateRequest
- Inherits:
-
Object
- Object
- Xolphin::Api::CertificateRequests::CreateCertificateRequest
- Defined in:
- lib/xolphin/api/certificate_requests/create_certificate_request.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#approver_email ⇒ Object
Returns the value of attribute approver_email.
-
#approver_first_name ⇒ Object
Returns the value of attribute approver_first_name.
-
#approver_last_name ⇒ Object
Returns the value of attribute approver_last_name.
-
#approver_phone ⇒ Object
Returns the value of attribute approver_phone.
-
#city ⇒ Object
Returns the value of attribute city.
-
#company ⇒ Object
Returns the value of attribute company.
-
#csr ⇒ Object
Returns the value of attribute csr.
-
#dcv ⇒ Object
Returns the value of attribute dcv.
-
#dcv_type ⇒ Object
Returns the value of attribute dcv_type.
-
#department ⇒ Object
Returns the value of attribute department.
-
#kvk ⇒ Object
Returns the value of attribute kvk.
-
#language ⇒ Object
Returns the value of attribute language.
-
#product ⇒ Object
Returns the value of attribute product.
-
#reference ⇒ Object
Returns the value of attribute reference.
-
#subject_alternative_names ⇒ Object
Returns the value of attribute subject_alternative_names.
-
#years ⇒ Object
Returns the value of attribute years.
-
#zipcode ⇒ Object
Returns the value of attribute zipcode.
Instance Method Summary collapse
-
#initialize(product, years, csr, dcv_type) ⇒ CreateCertificateRequest
constructor
A new instance of CreateCertificateRequest.
- #to_param ⇒ Object
Constructor Details
#initialize(product, years, csr, dcv_type) ⇒ CreateCertificateRequest
Returns a new instance of CreateCertificateRequest.
11 12 13 14 15 16 |
# File 'lib/xolphin/api/certificate_requests/create_certificate_request.rb', line 11 def initialize(product, years, csr, dcv_type) @product = product @years = years @csr = csr @dcv_type = dcv_type end |
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
8 9 10 |
# File 'lib/xolphin/api/certificate_requests/create_certificate_request.rb', line 8 def address @address end |
#approver_email ⇒ Object
Returns the value of attribute approver_email.
9 10 11 |
# File 'lib/xolphin/api/certificate_requests/create_certificate_request.rb', line 9 def approver_email @approver_email end |
#approver_first_name ⇒ Object
Returns the value of attribute approver_first_name.
9 10 11 |
# File 'lib/xolphin/api/certificate_requests/create_certificate_request.rb', line 9 def approver_first_name @approver_first_name end |
#approver_last_name ⇒ Object
Returns the value of attribute approver_last_name.
9 10 11 |
# File 'lib/xolphin/api/certificate_requests/create_certificate_request.rb', line 9 def approver_last_name @approver_last_name end |
#approver_phone ⇒ Object
Returns the value of attribute approver_phone.
9 10 11 |
# File 'lib/xolphin/api/certificate_requests/create_certificate_request.rb', line 9 def approver_phone @approver_phone end |
#city ⇒ Object
Returns the value of attribute city.
8 9 10 |
# File 'lib/xolphin/api/certificate_requests/create_certificate_request.rb', line 8 def city @city end |
#company ⇒ Object
Returns the value of attribute company.
8 9 10 |
# File 'lib/xolphin/api/certificate_requests/create_certificate_request.rb', line 8 def company @company end |
#csr ⇒ Object
Returns the value of attribute csr.
7 8 9 |
# File 'lib/xolphin/api/certificate_requests/create_certificate_request.rb', line 7 def csr @csr end |
#dcv ⇒ Object
Returns the value of attribute dcv.
7 8 9 |
# File 'lib/xolphin/api/certificate_requests/create_certificate_request.rb', line 7 def dcv @dcv end |
#dcv_type ⇒ Object
Returns the value of attribute dcv_type.
7 8 9 |
# File 'lib/xolphin/api/certificate_requests/create_certificate_request.rb', line 7 def dcv_type @dcv_type end |
#department ⇒ Object
Returns the value of attribute department.
8 9 10 |
# File 'lib/xolphin/api/certificate_requests/create_certificate_request.rb', line 8 def department @department end |
#kvk ⇒ Object
Returns the value of attribute kvk.
8 9 10 |
# File 'lib/xolphin/api/certificate_requests/create_certificate_request.rb', line 8 def kvk @kvk end |
#language ⇒ Object
Returns the value of attribute language.
7 8 9 |
# File 'lib/xolphin/api/certificate_requests/create_certificate_request.rb', line 7 def language @language end |
#product ⇒ Object
Returns the value of attribute product.
7 8 9 |
# File 'lib/xolphin/api/certificate_requests/create_certificate_request.rb', line 7 def product @product end |
#reference ⇒ Object
Returns the value of attribute reference.
8 9 10 |
# File 'lib/xolphin/api/certificate_requests/create_certificate_request.rb', line 8 def reference @reference end |
#subject_alternative_names ⇒ Object
Returns the value of attribute subject_alternative_names.
7 8 9 |
# File 'lib/xolphin/api/certificate_requests/create_certificate_request.rb', line 7 def subject_alternative_names @subject_alternative_names end |
#years ⇒ Object
Returns the value of attribute years.
7 8 9 |
# File 'lib/xolphin/api/certificate_requests/create_certificate_request.rb', line 7 def years @years end |
#zipcode ⇒ Object
Returns the value of attribute zipcode.
8 9 10 |
# File 'lib/xolphin/api/certificate_requests/create_certificate_request.rb', line 8 def zipcode @zipcode end |
Instance Method Details
#to_param ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/xolphin/api/certificate_requests/create_certificate_request.rb', line 18 def to_param result = { "product" => @product, "years" => @years, "csr" => @csr, "dcvType" => @dcv_type } result.merge!({ "company" => @company, "department" => @department, "address" => @address, "zipcode" => @zipcode, "city" => @city, "kvk" => @kvk, "reference" => @reference, "approverFirstName" => @approver_first_name, "approverLastName" => @approver_last_name, "approverEmail" => @approver_email, "approverPhone" => @approver_phone, "language" => @language }.reject { |_key, value| value.nil? }) if @subject_alternative_names result["subjectAlternativeNames"] = @subject_alternative_names.join(",") end result["dcv"] = JSON.dump(@dcv) if @dcv result end |