Class: Temporal::PlainTime
- Inherits:
-
Object
- Object
- Temporal::PlainTime
- Defined in:
- lib/temporal/plain_time.rb
Instance Attribute Summary collapse
-
#hour ⇒ Object
Returns the value of attribute hour.
-
#microsecond ⇒ Object
Returns the value of attribute microsecond.
-
#millisecond ⇒ Object
Returns the value of attribute millisecond.
-
#minute ⇒ Object
Returns the value of attribute minute.
-
#nanosecond ⇒ Object
Returns the value of attribute nanosecond.
-
#second ⇒ Object
Returns the value of attribute second.
Instance Method Summary collapse
-
#initialize(hour = 0, minute = 0, second = 0, millisecond = 0, microsecond = 0, nanosecond = 0) ⇒ PlainTime
constructor
A new instance of PlainTime.
Constructor Details
#initialize(hour = 0, minute = 0, second = 0, millisecond = 0, microsecond = 0, nanosecond = 0) ⇒ PlainTime
Returns a new instance of PlainTime.
7 8 9 10 11 12 13 14 15 |
# File 'lib/temporal/plain_time.rb', line 7 def initialize(hour = 0, minute = 0, second = 0, millisecond = 0, microsecond = 0, nanosecond = 0) self.hour = hour self.minute = minute self.second = second self.millisecond = millisecond self.microsecond = microsecond self.nanosecond = nanosecond end |
Instance Attribute Details
#hour ⇒ Object
Returns the value of attribute hour.
5 6 7 |
# File 'lib/temporal/plain_time.rb', line 5 def hour @hour end |
#microsecond ⇒ Object
Returns the value of attribute microsecond.
5 6 7 |
# File 'lib/temporal/plain_time.rb', line 5 def microsecond @microsecond end |
#millisecond ⇒ Object
Returns the value of attribute millisecond.
5 6 7 |
# File 'lib/temporal/plain_time.rb', line 5 def millisecond @millisecond end |
#minute ⇒ Object
Returns the value of attribute minute.
5 6 7 |
# File 'lib/temporal/plain_time.rb', line 5 def minute @minute end |
#nanosecond ⇒ Object
Returns the value of attribute nanosecond.
5 6 7 |
# File 'lib/temporal/plain_time.rb', line 5 def nanosecond @nanosecond end |
#second ⇒ Object
Returns the value of attribute second.
5 6 7 |
# File 'lib/temporal/plain_time.rb', line 5 def second @second end |