Class: Biz::Day
- Inherits:
-
Object
- Object
- Biz::Day
- Extended by:
- Forwardable
- Includes:
- Comparable
- Defined in:
- lib/biz/day.rb
Instance Attribute Summary collapse
-
#day ⇒ Object
readonly
Returns the value of attribute day.
Class Method Summary collapse
- .from_date(date) ⇒ Object
- .from_time(time) ⇒ Object (also: since_epoch)
Instance Method Summary collapse
- #coerce(other) ⇒ Object
-
#initialize(day) ⇒ Day
constructor
A new instance of Day.
- #to_date ⇒ Object
Constructor Details
#initialize(day) ⇒ Day
30 31 32 |
# File 'lib/biz/day.rb', line 30 def initialize(day) @day = Integer(day) end |
Instance Attribute Details
#day ⇒ Object (readonly)
Returns the value of attribute day.
22 23 24 |
# File 'lib/biz/day.rb', line 22 def day @day end |