lib/pupa/models/model.rb
def [](property)
      if properties.include?(property.to_sym)
        send(property)
      else
        raise Errors::MissingAttributeError, "missing attribute: #{property}"
      end
    end
def [](property)
      if properties.include?(property.to_sym)
        send(property)
      else
        raise Errors::MissingAttributeError, "missing attribute: #{property}"
      end
    end
def [] ( property ) if properties . include? ( property . to_sym ) send ( property ) else raise Errors :: MissingAttributeError , "missing attribute: #{property}" end end
@param [Hash] properties the object's properties
 Returns the value of a property.

 @param [Symbol] property a property name
 @raises [Pupa::Errors::MissingAttributeError] if class is missing the property
@param [ Hash ] properties the object s properties Returns the value of a property .