Class: Duration::Months
- Inherits:
-
Object
- Object
- Duration::Months
- Includes:
- Common
- Defined in:
- lib/Duration/Months.rb
Instance Method Summary collapse
- #to_days ⇒ Object
- #to_f ⇒ Object
- #to_hours ⇒ Object
- #to_i ⇒ Object
- #to_milliseconds ⇒ Object
- #to_minutes ⇒ Object
- #to_months ⇒ Object
- #to_seconds ⇒ Object
- #to_weeks ⇒ Object
Methods included from Common
Instance Method Details
#to_days ⇒ Object
27 28 29 |
# File 'lib/Duration/Months.rb', line 27 def to_days to_weeks.to_days end |
#to_f ⇒ Object
44 45 46 |
# File 'lib/Duration/Months.rb', line 44 def to_f @months end |
#to_hours ⇒ Object
23 24 25 |
# File 'lib/Duration/Months.rb', line 23 def to_hours to_weeks.to_hours end |
#to_i ⇒ Object
40 41 42 |
# File 'lib/Duration/Months.rb', line 40 def to_i @months.to_i end |
#to_milliseconds ⇒ Object
11 12 13 |
# File 'lib/Duration/Months.rb', line 11 def to_milliseconds to_weeks.to_milliseconds end |
#to_minutes ⇒ Object
19 20 21 |
# File 'lib/Duration/Months.rb', line 19 def to_minutes to_weeks.to_minutes end |
#to_months ⇒ Object
36 37 38 |
# File 'lib/Duration/Months.rb', line 36 def to_months self end |
#to_seconds ⇒ Object
15 16 17 |
# File 'lib/Duration/Months.rb', line 15 def to_seconds to_weeks.to_seconds end |