Sha256: c8ec8881a54face08fa02d3069c47a5350ce76b2495a37799448b17f16dcd532

Contents?: true

Size: 459 Bytes

Versions: 8

Compression:

Stored size: 459 Bytes

Contents

module Rentjuicer
  class Lead
    
    attr_accessor :client, :resource
    
    def initialize(client)
      self.client = client
      self.resource = "/leads.add.json"
    end
    
    def create(name, params = {}, raise_error = false)
      params.merge!(:name => name)
      Response.new(self.client.process_get(resource, params), raise_error)
    end
    
    def create!(name, params = {})
      create(name, params = {}, true)
    end
    
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rentjuicer-0.8.0 lib/rentjuicer/lead.rb
rentjuicer-0.7.3 lib/rentjuicer/lead.rb
rentjuicer-0.7.2 lib/rentjuicer/lead.rb
rentjuicer-0.7.1 lib/rentjuicer/lead.rb
rentjuicer-0.6.3 lib/rentjuicer/lead.rb
rentjuicer-0.6.2 lib/rentjuicer/lead.rb
rentjuicer-0.6.1 lib/rentjuicer/lead.rb
rentjuicer-0.6.0 lib/rentjuicer/lead.rb