def method_missing(name, *args)
      plural_name = :"#{name}s"
      return self.send(plural_name).first if respond_to?(plural_name)
      super(name, *args)
    end
def method_missing(name, *args)
      plural_name = :"#{name}s"
      return self.send(plural_name).first if respond_to?(plural_name)
      super(name, *args)
    end
If the method being called is a singular (in this simple case, does not
 end with an 's'), then it calls the plural method, and calls the first
 element. We're assuming that plural methods provide an array.

 Example:
 Object contains an array called 'alphas', which looks like [:a, :b, :c].
 Call object.alpha and :a is returned.