Class: RailsClafer::RefClafer
- Inherits:
-
Object
- Object
- RailsClafer::RefClafer
- Defined in:
- lib/rails_clafer/ref_clafer.rb
Instance Attribute Summary collapse
-
#card ⇒ Object
Returns the value of attribute card.
-
#clafer ⇒ Object
Returns the value of attribute clafer.
-
#constraint ⇒ Object
Returns the value of attribute constraint.
-
#gcard ⇒ Object
Returns the value of attribute gcard.
-
#ref_name ⇒ Object
Returns the value of attribute ref_name.
Class Method Summary collapse
Instance Method Summary collapse
- #clafer_name ⇒ Object
-
#initialize(ref_name, type_clafer, card) ⇒ RefClafer
constructor
A new instance of RefClafer.
Constructor Details
Instance Attribute Details
#card ⇒ Object
Returns the value of attribute card.
8 9 10 |
# File 'lib/rails_clafer/ref_clafer.rb', line 8 def card @card end |
#clafer ⇒ Object
Returns the value of attribute clafer.
8 9 10 |
# File 'lib/rails_clafer/ref_clafer.rb', line 8 def clafer @clafer end |
#constraint ⇒ Object
Returns the value of attribute constraint.
8 9 10 |
# File 'lib/rails_clafer/ref_clafer.rb', line 8 def constraint @constraint end |
#gcard ⇒ Object
Returns the value of attribute gcard.
8 9 10 |
# File 'lib/rails_clafer/ref_clafer.rb', line 8 def gcard @gcard end |
#ref_name ⇒ Object
Returns the value of attribute ref_name.
8 9 10 |
# File 'lib/rails_clafer/ref_clafer.rb', line 8 def ref_name @ref_name end |
Class Method Details
.from_assoc(assoc, type_clafer) ⇒ Object
4 5 6 |
# File 'lib/rails_clafer/ref_clafer.rb', line 4 def from_assoc(assoc, type_clafer) new assoc.ref_name, type_clafer, assoc.dst_card end |
Instance Method Details
#clafer_name ⇒ Object
14 15 16 |
# File 'lib/rails_clafer/ref_clafer.rb', line 14 def clafer_name @clafer.name end |