class Characteristic
Attributes
name[RW]
stars[RW]
Public Class Methods
new(hash)
click to toggle source
# File lib/best_friend/characteristics.rb, line 4 def initialize(hash) self.name = hash.keys[0] self.stars = hash[hash.keys[0]] end