Skip to content

Instantly share code, notes, and snippets.

@mleszcz
Last active May 12, 2018 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mleszcz/5af689bcdba643a9694222681e8b1fb5 to your computer and use it in GitHub Desktop.
Save mleszcz/5af689bcdba643a9694222681e8b1fb5 to your computer and use it in GitHub Desktop.
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