summaryrefslogtreecommitdiffstats
path: root/lib/contact.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/contact.rb')
-rw-r--r--lib/contact.rb10
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