Sha256: 7930695cf8ba8d9f0b73f3ebc2edf7f7a9c40ad8976f908050d1c42e5cecf397
Contents?: true
Size: 528 Bytes
Versions: 2
Compression:
Stored size: 528 Bytes
Contents
# All code in the gem is namespaced under this module. module CoderWally # Stores Badge properties class Badge # 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') end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
coder_wally-0.1.0 | lib/coder_wally/badge.rb |
coder_wally-0.0.7 | lib/coder_wally/badge.rb |