Module: Rdayone::AttributeMappable

Included in:
Entry, Location
Defined in:
lib/rdayone/attribute_mappable.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args) ⇒ Object



3
4
5
6
7
8
9
10
# File 'lib/rdayone/attribute_mappable.rb', line 3

def method_missing(method, *args)
  key = attribute_mappings[method]
  if key
    plist_hash[key]
  else
    super
  end
end