Sha256: 89d8debad44ffea82f421433c386cfeaa1add654636138ce03cce9e7b3c7dc03
Contents?: true
Size: 452 Bytes
Versions: 5
Compression:
Stored size: 452 Bytes
Contents
# encoding: UTF-8 require 'contactology/basic_object' require 'contactology/list' module Contactology class ListProxy < ::Contactology::BasicObject attr_reader :list_id def initialize(list_id) @list_id = list_id end private def get_list(id) List.find(id) end def method_missing(method, *args, &block) @list ||= get_list(list_id) @list.send(method, *args, &block) if @list end end end
Version data entries
5 entries across 5 versions & 1 rubygems