Sha256: 7e234591f55a82dcd71a0501d5d9ff865ecb5602843bf9198f8dd7ef43a4ae8e

Contents?: true

Size: 518 Bytes

Versions: 3

Compression:

Stored size: 518 Bytes

Contents

# frozen_string_literal: true

# Following the API description here: https://staging.youlend.com/developer/main/onboardingdoc
module Youlend
  class Lead
    def initialize(params)
      @id = nil
      @params = params
    end

    def create
      Youlend.connection.post('/onboarding/Leads', :onboarding, @params)
    end

    def self.create(params)
      new(params).create
    end

    def self.details(lead_id)
      Youlend.connection.get("/onboarding/Leads/#{lead_id}/details", :onboarding)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
youlend-1.0.2 lib/youlend/lead.rb
youlend-1.0.1 lib/youlend/lead.rb
youlend-1.0.0 lib/youlend/lead.rb