Sha256: a302cd432b1bd076132ce1f32225b670e76e1aba5a78e6fbd72e0bd84fe3e420

Contents?: true

Size: 467 Bytes

Versions: 10

Compression:

Stored size: 467 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.class.get(resource, :query => params), raise_error)
    end
    
    def create!(name, params = {})
      create(name, params = {}, true)
    end
    
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rentjuicer-0.5.1 lib/rentjuicer/lead.rb
rentjuicer-0.5.0 lib/rentjuicer/lead.rb
rentjuicer-0.4.4 lib/rentjuicer/lead.rb
rentjuicer-0.4.3 lib/rentjuicer/lead.rb
rentjuicer-0.4.2 lib/rentjuicer/lead.rb
rentjuicer-0.4.1 lib/rentjuicer/lead.rb
rentjuicer-0.4.0 lib/rentjuicer/lead.rb
rentjuicer-0.3.0 lib/rentjuicer/lead.rb
rentjuicer-0.2.1 lib/rentjuicer/lead.rb
rentjuicer-0.2.0 lib/rentjuicer/lead.rb