Last active
May 12, 2018 13:56
-
-
Save mleszcz/5af689bcdba643a9694222681e8b1fb5 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 OrderRepor | |
attr_accessor :attributes | |
def initialize(various_attributes) | |
@attributes = various_attributes | |
end | |
def print_out | |
puts "Summary title" | |
puts @attributes[:item_name] | |
end | |
end | |
report = OrderRepor.new(item_name: "Awesome ebike") | |
report.print_out | |
# Summary title | |
# Awesome ebike |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment