~singpolyma/sgx-jmp

6dbcb84bc8d4798711ed16b5556e39e5369388e3 — Stephen Paul Weber 2 years ago e6bdcc9
Unused dead code
1 files changed, 0 insertions(+), 15 deletions(-)

M lib/customer_info_form.rb
M lib/customer_info_form.rb => lib/customer_info_form.rb +0 -15
@@ 9,21 9,6 @@ class CustomerInfoForm
		@customer_repo = customer_repo
	end

	def picker_form
		form = Blather::Stanza::X.new(:form)
		form.title = "Pick Customer"
		form.instructions = "Tell us something about the customer and we'll try " \
			"to get more information for you"

		form.fields = {
			var: "q", type: "text-single",
			label: "Something about the customer",
			description: "Supported things include: customer ID, JID, phone number"
		}

		form
	end

	def find_customer(response)
		parse_something(response.form.field("q").value)
	end