Class: Castaway::Element::Base::Tail

Inherits:
Struct
  • Object
show all
Defined in:
lib/castaway/element/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#amountObject

Returns the value of attribute amount

Returns:

  • (Object)

    the current value of amount



30
31
32
# File 'lib/castaway/element/base.rb', line 30

def amount
  @amount
end

#ownerObject

Returns the value of attribute owner

Returns:

  • (Object)

    the current value of owner



30
31
32
# File 'lib/castaway/element/base.rb', line 30

def owner
  @owner
end

Instance Method Details

#to_fObject



31
32
33
# File 'lib/castaway/element/base.rb', line 31

def to_f
  owner.duration - amount
end