diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2015-10-03 17:41:27 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2015-10-03 17:47:28 +0200 |
commit | 1c48f48073e33875650b687ced05a51e0fd7f7d3 (patch) | |
tree | 0426fff05d78335a81c7c2d369e00d29bfbc0028 /lib/contact.rb | |
parent | ff7a2f930d58e0cb02ffee76e250a02e6b3c7ce3 (diff) | |
download | norsk-urskog-registrations-1c48f48073e33875650b687ced05a51e0fd7f7d3.tar.gz norsk-urskog-registrations-1c48f48073e33875650b687ced05a51e0fd7f7d3.tar.bz2 norsk-urskog-registrations-1c48f48073e33875650b687ced05a51e0fd7f7d3.zip |
Add route to handle submitted form.
Diffstat (limited to 'lib/contact.rb')
-rw-r--r-- | lib/contact.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/contact.rb b/lib/contact.rb new file mode 100644 index 0000000..1e6ba4b --- /dev/null +++ b/lib/contact.rb @@ -0,0 +1,10 @@ +class Contact + attr_reader :name, :addr, :phone, :email + + def initialize(params) + @name = params['name'] + @addr = params['addr'] + @phone = params['phone'] + @email = params['email'] + end +end |