Module: Hashme

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

Defined Under Namespace

Modules: Attributes, Castable, ClassMethods, Properties Classes: CastedArray, Property

Constant Summary collapse

VERSION =
"0.1.2"

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