Last active
May 10, 2018 14:04
-
-
Save mleszcz/bf36203d4efe6e4eed99e6c5a8cbf591 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Invoice | |
attr_accessor :product_name | |
def email_invoice | |
puts "Emailing an invoice..." | |
puts name | |
end | |
def short_name | |
puts name | |
end | |
def name | |
"Invoice for #{@product_name}" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment