Class: BillersController
- Inherits:
-
Object
- Object
- BillersController
- Defined in:
- lib/invoices/controllers/billers_controller.rb
Instance Method Summary collapse
-
#initialize ⇒ BillersController
constructor
A new instance of BillersController.
Constructor Details
#initialize ⇒ BillersController
Returns a new instance of BillersController.
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/invoices/controllers/billers_controller.rb', line 2 def initialize biller = Biller.new puts "your name >" biller.name = $stdin.gets.chomp puts "street1 >" biller.street1 = $stdin.gets.chomp puts "street2 >" biller.street2 = $stdin.gets.chomp puts "city >" biller.city = $stdin.gets.chomp puts "state (2 letters) >" biller.state = $stdin.gets.chomp puts "zip (5 digits) >" biller.zip = $stdin.gets.chomp puts "phone >" biller.phone = $stdin.gets.chomp puts "email >" biller.email = $stdin.gets.chomp biller.save end |