Class: OnlinePayments::SDK::Domain::CreateCertificateResponse
- Inherits:
-
DataObject
- Object
- DataObject
- OnlinePayments::SDK::Domain::CreateCertificateResponse
- Defined in:
- lib/onlinepayments/sdk/domain/create_certificate_response.rb
Instance Attribute Summary collapse
-
#certificate_id ⇒ String
The current value of certificate_id.
-
#signed_certificate ⇒ String
The current value of signed_certificate.
Instance Method Summary collapse
Methods inherited from DataObject
Instance Attribute Details
#certificate_id ⇒ String
Returns the current value of certificate_id.
11 12 13 |
# File 'lib/onlinepayments/sdk/domain/create_certificate_response.rb', line 11 def certificate_id @certificate_id end |
#signed_certificate ⇒ String
Returns the current value of signed_certificate.
11 12 13 |
# File 'lib/onlinepayments/sdk/domain/create_certificate_response.rb', line 11 def signed_certificate @signed_certificate end |
Instance Method Details
#from_hash(hash) ⇒ Object
25 26 27 28 29 30 31 32 33 |
# File 'lib/onlinepayments/sdk/domain/create_certificate_response.rb', line 25 def from_hash(hash) super if hash.has_key? 'certificateId' @certificate_id = hash['certificateId'] end if hash.has_key? 'signedCertificate' @signed_certificate = hash['signedCertificate'] end end |
#to_h ⇒ Hash
18 19 20 21 22 23 |
# File 'lib/onlinepayments/sdk/domain/create_certificate_response.rb', line 18 def to_h hash = super hash['certificateId'] = @certificate_id unless @certificate_id.nil? hash['signedCertificate'] = @signed_certificate unless @signed_certificate.nil? hash end |