Class: FactoryGirl::Attribute Private
- Inherits:
-
Object
- Object
- FactoryGirl::Attribute
- Defined in:
- lib/factory_girl/attribute.rb,
lib/factory_girl/attribute/static.rb,
lib/factory_girl/attribute/dynamic.rb,
lib/factory_girl/attribute/sequence.rb,
lib/factory_girl/attribute/association.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Direct Known Subclasses
Defined Under Namespace
Classes: Association, Dynamic, Sequence, Static
Instance Attribute Summary (collapse)
- - (Object) ignored readonly private
- - (Object) name readonly private
Instance Method Summary (collapse)
- - (Boolean) alias_for?(attr) private
- - (Boolean) association? private
-
- (Attribute) initialize(name, ignored)
constructor
private
A new instance of Attribute.
- - (Object) to_proc private
Constructor Details
- (Attribute) initialize(name, ignored)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
A new instance of Attribute
11 12 13 14 15 |
# File 'lib/factory_girl/attribute.rb', line 11 def initialize(name, ignored) @name = name.to_sym @ignored = ignored ensure_non_attribute_writer! end |
Instance Attribute Details
- (Object) ignored (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
9 10 11 |
# File 'lib/factory_girl/attribute.rb', line 9 def ignored @ignored end |
- (Object) name (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
9 10 11 |
# File 'lib/factory_girl/attribute.rb', line 9 def name @name end |
Instance Method Details
- (Boolean) alias_for?(attr)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
25 26 27 |
# File 'lib/factory_girl/attribute.rb', line 25 def alias_for?(attr) FactoryGirl.aliases_for(attr).include?(name) end |
- (Boolean) association?
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
21 22 23 |
# File 'lib/factory_girl/attribute.rb', line 21 def association? false end |
- (Object) to_proc
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
17 18 19 |
# File 'lib/factory_girl/attribute.rb', line 17 def to_proc -> { } end |