class Trello::AssociationProxy
Public Class Methods
new(association)
click to toggle source
# File lib/trello/association_proxy.rb, line 12 def initialize(association) @association = association Array(association.options[:extend]).each { |ext| proxy_extend(ext) } end
Public Instance Methods
<<(*records)
click to toggle source
# File lib/trello/association_proxy.rb, line 38 def <<(*records) proxy_assocation.concat(records) && self end
===(other)
click to toggle source
# File lib/trello/association_proxy.rb, line 29 def ===(other) other === target end
method_missing(method, *args, &block)
click to toggle source
Calls superclass method
# File lib/trello/association_proxy.rb, line 21 def method_missing(method, *args, &block) if target.respond_to? method target.send(method, *args, &block) else super end end
proxy_assocation()
click to toggle source
# File lib/trello/association_proxy.rb, line 17 def proxy_assocation @association end
to_ary()
click to toggle source
# File lib/trello/association_proxy.rb, line 33 def to_ary proxy_assocation.target.dup end
Also aliased as: to_a