module Finix module HalResource attr_accessor :hyperlinks attr_accessor :attributes def method_missing(method, *args, &block) if @attributes.has_key?(method.to_s) return @attributes[method.to_s] end case method.to_s when /(.+)=$/ attr = method.to_s.chop @attributes[attr] = args[0] else if @hyperlinks.has_key? "#{method}" value = @hyperlinks["#{method}"] result = value.call return result end end end end end