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