class Ingenico::Connect::SDK::Domain::Definitions::ContactDetailsBase

@attr [String] email_address @attr [String] email_message_type

Attributes

email_address[RW]
email_message_type[RW]

Public Instance Methods

from_hash(hash) click to toggle source
# File lib/ingenico/connect/sdk/domain/definitions/contact_details_base.rb, line 27
def from_hash(hash)
  super
  if hash.has_key? 'emailAddress'
    @email_address = hash['emailAddress']
  end
  if hash.has_key? 'emailMessageType'
    @email_message_type = hash['emailMessageType']
  end
end
to_h() click to toggle source

@return (Hash)

Calls superclass method Ingenico::Connect::SDK::DataObject#to_h
# File lib/ingenico/connect/sdk/domain/definitions/contact_details_base.rb, line 20
def to_h
  hash = super
  hash['emailAddress'] = @email_address unless @email_address.nil?
  hash['emailMessageType'] = @email_message_type unless @email_message_type.nil?
  hash
end