Class: Trello::Association

Inherits:
Object
  • Object
show all
Defined in:
lib/trello/association.rb

Direct Known Subclasses

MultiAssociation

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(owner, target) ⇒ Association

Returns a new instance of Association.



5
6
7
8
9
10
11
12
# File 'lib/trello/association.rb', line 5

def initialize(owner, target)
  @owner  = owner
  @target = target
  @options = {}
  if target.is_a?(Array)
    target.each { |array_element| array_element.client = owner.client }
  end
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



3
4
5
# File 'lib/trello/association.rb', line 3

def options
  @options
end

#ownerObject (readonly)

Returns the value of attribute owner.



3
4
5
# File 'lib/trello/association.rb', line 3

def owner
  @owner
end

#proxyObject (readonly)

Returns the value of attribute proxy.



3
4
5
# File 'lib/trello/association.rb', line 3

def proxy
  @proxy
end

#targetObject (readonly)

Returns the value of attribute target.



3
4
5
# File 'lib/trello/association.rb', line 3

def target
  @target
end