class Markety::Response::ListOperationResponse

Response class for Command::ListOperation calls

Public Class Methods

new(response) click to toggle source
Calls superclass method Markety::Response::GenericResponse::new
# File lib/markety/response/list_operation_response.rb, line 8
def initialize(response)
  super(:list_operation_response,response)
  @list_operation_success = false

  if self.success?
    h = self.to_hash
    @list_operation_success = h[:success_list_operation][:result][:success]
  end
end

Public Instance Methods

list_op_success?()
list_operation_success?() click to toggle source

Whether the operation was successful.

Note: this is not the same as parent's success? method. For list operations, success? almost always true (because Marketo accepted the request and gave you a response).

# File lib/markety/response/list_operation_response.rb, line 23
def list_operation_success?
  @list_operation_success
end
Also aliased as: list_op_success?, lop_success?
lop_success?()