Module: Hashme

Extended by:
ActiveSupport::Concern
Includes:
Validations
Defined in:
lib/hashme.rb,
lib/hashme/version.rb,
lib/hashme/property.rb,
lib/hashme/attributes.rb,
lib/hashme/properties.rb,
lib/hashme/validations.rb,
lib/hashme/casted_array.rb,
lib/hashme/property_casting.rb,
lib/hashme/validations/casted_attribute_validator.rb

Defined Under Namespace

Modules: Attributes, ClassMethods, Properties, PropertyCasting, Validations Classes: CastedArray, Property

Constant Summary collapse

VERSION =
"0.2.6"

Instance Method Summary collapse

Instance Method Details

#initialize(attrs = {}) ⇒ Object



32
33
34
35
36
# File 'lib/hashme.rb', line 32

def initialize(attrs = {})
  # Use the `Properties` module's methods
  set_defaults
  set_attributes(attrs)
end