Class: FTF::Mappings::Relationship
- Inherits:
-
Object
- Object
- FTF::Mappings::Relationship
- Defined in:
- lib/ftf/mappings/relationship.rb
Instance Attribute Summary collapse
-
#holder ⇒ Object
readonly
Returns the value of attribute holder.
Instance Method Summary collapse
- #action ⇒ Object
- #canceled_at ⇒ Object
- #created_at ⇒ Object
-
#initialize(data, holder) ⇒ Relationship
constructor
A new instance of Relationship.
- #previous_type ⇒ Object
- #type ⇒ Object
Constructor Details
#initialize(data, holder) ⇒ Relationship
Returns a new instance of Relationship.
8 9 10 11 |
# File 'lib/ftf/mappings/relationship.rb', line 8 def initialize(data, holder) @data = data @holder = holder end |
Instance Attribute Details
#holder ⇒ Object (readonly)
Returns the value of attribute holder.
6 7 8 |
# File 'lib/ftf/mappings/relationship.rb', line 6 def holder @holder end |
Instance Method Details
#action ⇒ Object
13 14 15 |
# File 'lib/ftf/mappings/relationship.rb', line 13 def action @data[:action] end |
#canceled_at ⇒ Object
25 26 27 |
# File 'lib/ftf/mappings/relationship.rb', line 25 def canceled_at @data[:canceled_at].to_s end |
#created_at ⇒ Object
21 22 23 |
# File 'lib/ftf/mappings/relationship.rb', line 21 def created_at @data[:created_at] end |
#previous_type ⇒ Object
29 30 31 |
# File 'lib/ftf/mappings/relationship.rb', line 29 def previous_type @data[:previous_type] end |
#type ⇒ Object
17 18 19 |
# File 'lib/ftf/mappings/relationship.rb', line 17 def type @data[:type] end |