Class: Castaway::Element::Base::Tail
- Inherits:
-
Struct
- Object
- Struct
- Castaway::Element::Base::Tail
- Defined in:
- lib/castaway/element/base.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#owner ⇒ Object
Returns the value of attribute owner.
Instance Method Summary collapse
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount
30 31 32 |
# File 'lib/castaway/element/base.rb', line 30 def amount @amount end |
#owner ⇒ Object
Returns the value of attribute owner
30 31 32 |
# File 'lib/castaway/element/base.rb', line 30 def owner @owner end |
Instance Method Details
#to_f ⇒ Object
31 32 33 |
# File 'lib/castaway/element/base.rb', line 31 def to_f owner.duration - amount end |