Class: Trello::Association
- Inherits:
-
Object
- Object
- Trello::Association
- Defined in:
- lib/trello/association.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#owner ⇒ Object
readonly
Returns the value of attribute owner.
-
#proxy ⇒ Object
readonly
Returns the value of attribute proxy.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Instance Method Summary collapse
-
#initialize(owner, target) ⇒ Association
constructor
A new instance of Association.
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
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'lib/trello/association.rb', line 3 def @options end |
#owner ⇒ Object (readonly)
Returns the value of attribute owner.
3 4 5 |
# File 'lib/trello/association.rb', line 3 def owner @owner end |
#proxy ⇒ Object (readonly)
Returns the value of attribute proxy.
3 4 5 |
# File 'lib/trello/association.rb', line 3 def proxy @proxy end |
#target ⇒ Object (readonly)
Returns the value of attribute target.
3 4 5 |
# File 'lib/trello/association.rb', line 3 def target @target end |