Class: Liquid::EmployeeDrop

Inherits:
Drop
  • Object
show all
Includes:
Memery
Defined in:
app/models/liquid/employee_drop.rb

Instance Attribute Summary collapse

Delegated Instance Attributes collapse

Instance Method Summary collapse

Constructor Details

#initialize(employee) ⇒ EmployeeDrop

Returns a new instance of EmployeeDrop.



14
15
16
# File 'app/models/liquid/employee_drop.rb', line 14

def initialize(employee)
  @employee = employee
end

Instance Attribute Details

#employeeObject (readonly)

Returns the value of attribute employee.



6
7
8
# File 'app/models/liquid/employee_drop.rb', line 6

def employee
  @employee
end

Instance Method Details

Alias for Employee#calendly_link

Returns:

  • (Object)

    Employee#calendly_link

See Also:



8
9
10
11
12
# File 'app/models/liquid/employee_drop.rb', line 8

delegate :id, :name, :full_name, :email, :job_title, :phone, :fax,
:pbx_did, :company, :signature, :first_name,
:interesting_fact, :years_at_warmlyyours, :certifications,
:signature_picture_small, :phone_formatted, :calendly_link,
to: :employee

#certificationsObject

Alias for Employee#certifications

Returns:

  • (Object)

    Employee#certifications

See Also:



8
9
10
11
12
# File 'app/models/liquid/employee_drop.rb', line 8

delegate :id, :name, :full_name, :email, :job_title, :phone, :fax,
:pbx_did, :company, :signature, :first_name,
:interesting_fact, :years_at_warmlyyours, :certifications,
:signature_picture_small, :phone_formatted, :calendly_link,
to: :employee

#companyObject

Alias for Employee#company

Returns:

  • (Object)

    Employee#company

See Also:



8
9
10
11
12
# File 'app/models/liquid/employee_drop.rb', line 8

delegate :id, :name, :full_name, :email, :job_title, :phone, :fax,
:pbx_did, :company, :signature, :first_name,
:interesting_fact, :years_at_warmlyyours, :certifications,
:signature_picture_small, :phone_formatted, :calendly_link,
to: :employee

#emailObject

Alias for Employee#email

Returns:

  • (Object)

    Employee#email

See Also:



8
9
10
11
12
# File 'app/models/liquid/employee_drop.rb', line 8

delegate :id, :name, :full_name, :email, :job_title, :phone, :fax,
:pbx_did, :company, :signature, :first_name,
:interesting_fact, :years_at_warmlyyours, :certifications,
:signature_picture_small, :phone_formatted, :calendly_link,
to: :employee

#faxObject

Alias for Employee#fax

Returns:

  • (Object)

    Employee#fax

See Also:



8
9
10
11
12
# File 'app/models/liquid/employee_drop.rb', line 8

delegate :id, :name, :full_name, :email, :job_title, :phone, :fax,
:pbx_did, :company, :signature, :first_name,
:interesting_fact, :years_at_warmlyyours, :certifications,
:signature_picture_small, :phone_formatted, :calendly_link,
to: :employee

#first_nameObject

Alias for Employee#first_name

Returns:

  • (Object)

    Employee#first_name

See Also:



8
9
10
11
12
# File 'app/models/liquid/employee_drop.rb', line 8

delegate :id, :name, :full_name, :email, :job_title, :phone, :fax,
:pbx_did, :company, :signature, :first_name,
:interesting_fact, :years_at_warmlyyours, :certifications,
:signature_picture_small, :phone_formatted, :calendly_link,
to: :employee

#full_nameObject

Alias for Employee#full_name

Returns:

  • (Object)

    Employee#full_name

See Also:



8
9
10
11
12
# File 'app/models/liquid/employee_drop.rb', line 8

delegate :id, :name, :full_name, :email, :job_title, :phone, :fax,
:pbx_did, :company, :signature, :first_name,
:interesting_fact, :years_at_warmlyyours, :certifications,
:signature_picture_small, :phone_formatted, :calendly_link,
to: :employee

#idObject

Alias for Employee#id

Returns:

  • (Object)

    Employee#id

See Also:



8
9
10
11
12
# File 'app/models/liquid/employee_drop.rb', line 8

delegate :id, :name, :full_name, :email, :job_title, :phone, :fax,
:pbx_did, :company, :signature, :first_name,
:interesting_fact, :years_at_warmlyyours, :certifications,
:signature_picture_small, :phone_formatted, :calendly_link,
to: :employee

#interesting_factObject

Alias for Employee#interesting_fact

Returns:

  • (Object)

    Employee#interesting_fact

See Also:



8
9
10
11
12
# File 'app/models/liquid/employee_drop.rb', line 8

delegate :id, :name, :full_name, :email, :job_title, :phone, :fax,
:pbx_did, :company, :signature, :first_name,
:interesting_fact, :years_at_warmlyyours, :certifications,
:signature_picture_small, :phone_formatted, :calendly_link,
to: :employee

#job_titleObject

Alias for Employee#job_title

Returns:

  • (Object)

    Employee#job_title

See Also:



8
9
10
11
12
# File 'app/models/liquid/employee_drop.rb', line 8

delegate :id, :name, :full_name, :email, :job_title, :phone, :fax,
:pbx_did, :company, :signature, :first_name,
:interesting_fact, :years_at_warmlyyours, :certifications,
:signature_picture_small, :phone_formatted, :calendly_link,
to: :employee

#meeting_invite_url(name: nil, email: nil) ⇒ Object

Generates a link to the pre-planning with the information pre-filled, for more info
https://calendly.com/event_types/user/38214576



20
21
22
23
24
25
26
27
28
29
30
31
# File 'app/models/liquid/employee_drop.rb', line 20

def meeting_invite_url(name: nil, email: nil)
  return unless calendly_link.present?

  uri = Addressable::URI.parse(calendly_link)
  params = {
    name:,
    email:
  }.compact

  uri.query_values = params if params.present?
  uri.to_s
end

#nameObject

Alias for Employee#name

Returns:

  • (Object)

    Employee#name

See Also:



8
9
10
11
12
# File 'app/models/liquid/employee_drop.rb', line 8

delegate :id, :name, :full_name, :email, :job_title, :phone, :fax,
:pbx_did, :company, :signature, :first_name,
:interesting_fact, :years_at_warmlyyours, :certifications,
:signature_picture_small, :phone_formatted, :calendly_link,
to: :employee

#pbx_didObject

Alias for Employee#pbx_did

Returns:

  • (Object)

    Employee#pbx_did

See Also:



8
9
10
11
12
# File 'app/models/liquid/employee_drop.rb', line 8

delegate :id, :name, :full_name, :email, :job_title, :phone, :fax,
:pbx_did, :company, :signature, :first_name,
:interesting_fact, :years_at_warmlyyours, :certifications,
:signature_picture_small, :phone_formatted, :calendly_link,
to: :employee

#phoneObject

Alias for Employee#phone

Returns:

  • (Object)

    Employee#phone

See Also:



8
9
10
11
12
# File 'app/models/liquid/employee_drop.rb', line 8

delegate :id, :name, :full_name, :email, :job_title, :phone, :fax,
:pbx_did, :company, :signature, :first_name,
:interesting_fact, :years_at_warmlyyours, :certifications,
:signature_picture_small, :phone_formatted, :calendly_link,
to: :employee

#phone_formattedObject

Alias for Employee#phone_formatted

Returns:

  • (Object)

    Employee#phone_formatted

See Also:



8
9
10
11
12
# File 'app/models/liquid/employee_drop.rb', line 8

delegate :id, :name, :full_name, :email, :job_title, :phone, :fax,
:pbx_did, :company, :signature, :first_name,
:interesting_fact, :years_at_warmlyyours, :certifications,
:signature_picture_small, :phone_formatted, :calendly_link,
to: :employee

#signatureObject

Alias for Employee#signature

Returns:

  • (Object)

    Employee#signature

See Also:



8
9
10
11
12
# File 'app/models/liquid/employee_drop.rb', line 8

delegate :id, :name, :full_name, :email, :job_title, :phone, :fax,
:pbx_did, :company, :signature, :first_name,
:interesting_fact, :years_at_warmlyyours, :certifications,
:signature_picture_small, :phone_formatted, :calendly_link,
to: :employee

#signature_picture_smallObject

Alias for Employee#signature_picture_small

Returns:

  • (Object)

    Employee#signature_picture_small

See Also:



8
9
10
11
12
# File 'app/models/liquid/employee_drop.rb', line 8

delegate :id, :name, :full_name, :email, :job_title, :phone, :fax,
:pbx_did, :company, :signature, :first_name,
:interesting_fact, :years_at_warmlyyours, :certifications,
:signature_picture_small, :phone_formatted, :calendly_link,
to: :employee

#years_at_warmlyyoursObject

Alias for Employee#years_at_warmlyyours

Returns:

  • (Object)

    Employee#years_at_warmlyyours

See Also:



8
9
10
11
12
# File 'app/models/liquid/employee_drop.rb', line 8

delegate :id, :name, :full_name, :email, :job_title, :phone, :fax,
:pbx_did, :company, :signature, :first_name,
:interesting_fact, :years_at_warmlyyours, :certifications,
:signature_picture_small, :phone_formatted, :calendly_link,
to: :employee