class Markety::Response::LeadResponse

Attributes

error_message[RW]
lead_id[RW]
status[RW]

Public Class Methods

new(response) click to toggle source
# File lib/markety/response/lead_response.rb, line 7
def initialize(response)
  self.status = response[:status]
  self.error_message = response[:error]
  self.lead_id = response[:lead_id]
end

Public Instance Methods

success?() click to toggle source
# File lib/markety/response/lead_response.rb, line 13
def success?
  !failed?
end

Private Instance Methods

failed?() click to toggle source
# File lib/markety/response/lead_response.rb, line 19
def failed?
  status == "FAILED"
end