Class: KathyLee::Definition::Relationship
- Inherits:
-
Object
- Object
- KathyLee::Definition::Relationship
- Defined in:
- lib/kathy_lee/definition/relationship.rb
Instance Attribute Summary collapse
-
#code_block ⇒ Object
Returns the value of attribute code_block.
-
#factory ⇒ Object
Returns the value of attribute factory.
-
#klass ⇒ Object
Returns the value of attribute klass.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(factory, options = {}) ⇒ Relationship
constructor
A new instance of Relationship.
Constructor Details
#initialize(factory, options = {}) ⇒ Relationship
Returns a new instance of Relationship.
7 8 9 10 11 12 |
# File 'lib/kathy_lee/definition/relationship.rb', line 7 def initialize(factory, = {}) self.factory = factory self. = self.klass = self..delete(:klass) self.code_block = self..delete(:code_block) end |
Instance Attribute Details
#code_block ⇒ Object
Returns the value of attribute code_block.
3 4 5 |
# File 'lib/kathy_lee/definition/relationship.rb', line 3 def code_block @code_block end |
#factory ⇒ Object
Returns the value of attribute factory.
5 6 7 |
# File 'lib/kathy_lee/definition/relationship.rb', line 5 def factory @factory end |
#klass ⇒ Object
Returns the value of attribute klass.
4 5 6 |
# File 'lib/kathy_lee/definition/relationship.rb', line 4 def klass @klass end |
#options ⇒ Object
Returns the value of attribute options.
2 3 4 |
# File 'lib/kathy_lee/definition/relationship.rb', line 2 def @options end |