Module: Lifetime::ClassMethods
- Defined in:
- lib/lifetime.rb
Instance Attribute Summary collapse
-
#lifetime_end_field ⇒ Object
Returns the value of attribute lifetime_end_field.
-
#lifetime_start_field ⇒ Object
Returns the value of attribute lifetime_start_field.
Instance Method Summary collapse
Instance Attribute Details
#lifetime_end_field ⇒ Object
Returns the value of attribute lifetime_end_field.
8 9 10 |
# File 'lib/lifetime.rb', line 8 def lifetime_end_field @lifetime_end_field end |
#lifetime_start_field ⇒ Object
Returns the value of attribute lifetime_start_field.
8 9 10 |
# File 'lib/lifetime.rb', line 8 def lifetime_start_field @lifetime_start_field end |
Instance Method Details
#lifetime_fields(*args) ⇒ Object
9 10 11 12 |
# File 'lib/lifetime.rb', line 9 def lifetime_fields *args self.lifetime_start_field = args[0].to_s self.lifetime_end_field = args[1].to_s end |