module HashWrapper

Public Class Methods

included(base) click to toggle source
# File lib/divISOr/hash_wrapper.rb, line 2
def self.included(base)
  base.send(:attr_reader,:data)
end
new(data) click to toggle source
# File lib/divISOr/hash_wrapper.rb, line 6
def initialize(data)
  @data = data
end

Public Instance Methods

==(object) click to toggle source
# File lib/divISOr/hash_wrapper.rb, line 10
def ==(object)
  @data == object.data
end
method_missing(method, *args, &block) click to toggle source
Calls superclass method
# File lib/divISOr/hash_wrapper.rb, line 14
def method_missing(method, *args, &block)
  super unless self.class::FIELDS.include?(method)
  data[method].to_s
end