class Markety::Response::SyncMultipleLeadsResponse
Response
class for SyncLead commands
Public Class Methods
new(response)
click to toggle source
Calls superclass method
Markety::Response::GenericResponse::new
# File lib/markety/response/sync_multiple_leads_response.rb, line 6 def initialize(response) super(:sync_multiple_leads_response, response) end
Public Instance Methods
lead_responses()
click to toggle source
# File lib/markety/response/sync_multiple_leads_response.rb, line 10 def lead_responses response_hashes.map do |response_hash| LeadResponse.new(response_hash) end end
response_hashes()
click to toggle source
# File lib/markety/response/sync_multiple_leads_response.rb, line 16 def response_hashes [to_hash.fetch(:success_sync_multiple_leads, {}).fetch(:result, {}).fetch(:sync_status_list, {}).fetch(:sync_status, {})].flatten end