lib/coder_wally/badge.rb in coder_wally-0.0.6 vs lib/coder_wally/badge.rb in coder_wally-0.0.7
- old
+ new
@@ -5,12 +5,12 @@
# Object properties
attr_reader :name, :badge, :description, :created
# Initialise object with a hash of values
def initialize(hashed_badge)
- @name = hashed_badge.fetch("name")
- @badge = hashed_badge.fetch("badge")
- @description = hashed_badge.fetch("description")
- @created = hashed_badge.fetch("created")
+ @name = hashed_badge.fetch('name')
+ @badge = hashed_badge.fetch('badge')
+ @description = hashed_badge.fetch('description')
+ @created = hashed_badge.fetch('created')
end
end
end
\ No newline at end of file