class Xolphin::Api::Responses::Certificate
Public Class Methods
new(data)
click to toggle source
Calls superclass method
Xolphin::Api::Responses::Base::new
# File lib/xolphin/api/responses/certificate.rb, line 7 def initialize(data) super(data) end
Public Instance Methods
company()
click to toggle source
# File lib/xolphin/api/responses/certificate.rb, line 31 def company @data["company"] end
customer_id()
click to toggle source
# File lib/xolphin/api/responses/certificate.rb, line 35 def customer_id @data["customerId"] end
date_expired()
click to toggle source
# File lib/xolphin/api/responses/certificate.rb, line 27 def date_expired Time.parse(@data["dateExpired"]) end
date_issued()
click to toggle source
# File lib/xolphin/api/responses/certificate.rb, line 23 def date_issued Time.parse(@data["dateIssued"]) end
domain_name()
click to toggle source
# File lib/xolphin/api/responses/certificate.rb, line 15 def domain_name @data["domainName"] end
expired?()
click to toggle source
# File lib/xolphin/api/responses/certificate.rb, line 39 def expired? date_expired <= Time.now end
id()
click to toggle source
# File lib/xolphin/api/responses/certificate.rb, line 11 def id @data["id"] end
product()
click to toggle source
# File lib/xolphin/api/responses/certificate.rb, line 43 def product @product ||= begin if _embedded && _embedded["product"] Product.new(_embedded["product"]) end end end
subject_alternative_names()
click to toggle source
# File lib/xolphin/api/responses/certificate.rb, line 19 def subject_alternative_names @data["subjectAlternativeNames"] end