class CardConnect::Service::ProfileDeleteResponse
Constants
- FIELDS
- STATUS_APPROVED
- STATUS_NOT_FOUND
Attributes
errors[R]
Public Class Methods
new(response)
click to toggle source
# File lib/cardconnect/services/profile/profile_delete_response.rb, line 14 def initialize(response) set_attributes(response, FIELDS) @errors = [] process_errors end
Public Instance Methods
body()
click to toggle source
# File lib/cardconnect/services/profile/profile_delete_response.rb, line 24 def body FIELDS.collect{|attr| {attr => send(attr)} }.reduce({}, :merge) end
success?()
click to toggle source
# File lib/cardconnect/services/profile/profile_delete_response.rb, line 20 def success? errors.empty? end
Private Instance Methods
process_errors()
click to toggle source
# File lib/cardconnect/services/profile/profile_delete_response.rb, line 30 def process_errors @errors << resptext if STATUS_NOT_FOUND == respstat end