Class: YouGotListed::Lead

Inherits:
Resource show all
Defined in:
lib/you_got_listed/lead.rb

Instance Attribute Summary

Attributes inherited from Resource

#client

Instance Method Summary collapse

Methods inherited from Resource

#initialize, #process_get, #process_post

Constructor Details

This class inherits a constructor from YouGotListed::Resource

Instance Method Details

#create(lead_params = {}, raise_error = false) ⇒ Object



4
5
6
# File 'lib/you_got_listed/lead.rb', line 4

def create(lead_params = {}, raise_error = false)
  process_post("/leads/insert.php", lead_params, raise_error)
end

#create!(lead_params = {}) ⇒ Object



8
9
10
# File 'lib/you_got_listed/lead.rb', line 8

def create!(lead_params = {})
  create(lead_params, true)
end