Class: OnlinePayments::SDK::Domain::CreateCertificateResponse

Inherits:
DataObject
  • Object
show all
Defined in:
lib/onlinepayments/sdk/domain/create_certificate_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DataObject

new_from_hash

Instance Attribute Details

#certificate_idString

Returns the current value of certificate_id.

Returns:

  • (String)

    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_certificateString

Returns the current value of signed_certificate.

Returns:

  • (String)

    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_hHash

Returns:

  • (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