Class: Liquid::EmployeeDrop
- Inherits:
-
Drop
- Object
- Drop
- Liquid::EmployeeDrop
- Includes:
- Memery
- Defined in:
- app/models/liquid/employee_drop.rb
Instance Attribute Summary collapse
-
#employee ⇒ Object
readonly
Returns the value of attribute employee.
Delegated Instance Attributes collapse
-
#calendly_link ⇒ Object
Alias for Employee#calendly_link.
-
#certifications ⇒ Object
Alias for Employee#certifications.
-
#company ⇒ Object
Alias for Employee#company.
-
#email ⇒ Object
Alias for Employee#email.
-
#fax ⇒ Object
Alias for Employee#fax.
-
#first_name ⇒ Object
Alias for Employee#first_name.
-
#full_name ⇒ Object
Alias for Employee#full_name.
-
#id ⇒ Object
Alias for Employee#id.
-
#interesting_fact ⇒ Object
Alias for Employee#interesting_fact.
-
#job_title ⇒ Object
Alias for Employee#job_title.
-
#name ⇒ Object
Alias for Employee#name.
-
#pbx_did ⇒ Object
Alias for Employee#pbx_did.
-
#phone ⇒ Object
Alias for Employee#phone.
-
#phone_formatted ⇒ Object
Alias for Employee#phone_formatted.
-
#signature ⇒ Object
Alias for Employee#signature.
-
#signature_picture_small ⇒ Object
Alias for Employee#signature_picture_small.
-
#years_at_warmlyyours ⇒ Object
Alias for Employee#years_at_warmlyyours.
Instance Method Summary collapse
-
#initialize(employee) ⇒ EmployeeDrop
constructor
A new instance of EmployeeDrop.
-
#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.
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
#employee ⇒ Object (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
#calendly_link ⇒ Object
Alias for Employee#calendly_link
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 |
#certifications ⇒ Object
Alias for Employee#certifications
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 |
#company ⇒ Object
Alias for Employee#company
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 |
#email ⇒ Object
Alias for Employee#email
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 |
#fax ⇒ Object
Alias for Employee#fax
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_name ⇒ Object
Alias for Employee#first_name
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_name ⇒ Object
Alias for Employee#full_name
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 |
#id ⇒ Object
Alias for Employee#id
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_fact ⇒ Object
Alias for Employee#interesting_fact
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_title ⇒ Object
Alias for Employee#job_title
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 |
#name ⇒ Object
Alias for Employee#name
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_did ⇒ Object
Alias for Employee#pbx_did
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 ⇒ Object
Alias for Employee#phone
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_formatted ⇒ Object
Alias for Employee#phone_formatted
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 ⇒ Object
Alias for Employee#signature
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_small ⇒ Object
Alias for Employee#signature_picture_small
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_warmlyyours ⇒ Object
Alias for Employee#years_at_warmlyyours
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 |