Class: VAProfile::ContactInformation::EmailTransactionResponse

Inherits:
TransactionResponse show all
Defined in:
lib/va_profile/contact_information/transaction_response.rb

Constant Summary

Constants inherited from TransactionResponse

TransactionResponse::ERROR_STATUS

Constants included from Common::Client::Concerns::ServiceStatus

Common::Client::Concerns::ServiceStatus::RESPONSE_STATUS

Instance Attribute Summary

Attributes inherited from TransactionResponse

#response_body

Attributes inherited from Common::Base

#errors_hash, #metadata

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from TransactionResponse

error?

Methods included from SentryLogging

#log_exception_to_sentry, #log_message_to_sentry, #non_nil_hash?, #normalize_level, #rails_logger, #set_sentry_metadata

Methods inherited from Response

#cache?, #initialize, #metadata, #ok?, #response_status

Methods inherited from Common::Base

#changed, #changed?, #changes, default_sort, filterable_attributes, #initialize, max_per_page, per_page, sortable_attributes

Constructor Details

This class inherits a constructor from VAProfile::Response

Class Method Details

.from(*args) ⇒ Object



125
126
127
128
129
130
131
# File 'lib/va_profile/contact_information/transaction_response.rb', line 125

def self.from(*args)
  return_val = super

  return_val.response_body = @response_body

  return_val
end

Instance Method Details

#new_emailObject



133
134
135
136
137
138
# File 'lib/va_profile/contact_information/transaction_response.rb', line 133

def new_email
  tx_output = response_body['tx_output'][0]
  return if tx_output['effective_end_date'].present?

  tx_output['email_address_text']
end