Sha256: df205d41664dcdeb270c8ae837def12e997d3249dcbf4efc8d6433f6ebb14b7b
Contents?: true
Size: 477 Bytes
Versions: 5
Compression:
Stored size: 477 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
5 entries across 5 versions & 1 rubygems