Sha256: d57bbb66e1dfb62f6fd06005da58b4ff3a65f87de28ab8fa3024d967464ada7b
Contents?: true
Size: 562 Bytes
Versions: 9
Compression:
Stored size: 562 Bytes
Contents
module Alma class AlmaRecord def initialize(record) @raw_record = record post_initialize() end def method_missing(name) return response[name.to_s] if response.has_key?(name.to_s) super.method_missing name end def respond_to_missing?(name, include_private = false) response.has_key?(name.to_s) || super end def response @raw_record end def post_initialize # Subclasses can define this method to perform extra initialization # after the super class init. end end end
Version data entries
9 entries across 9 versions & 1 rubygems