Class: WBEM::TimeDelta
- Inherits:
-
Object
- Object
- WBEM::TimeDelta
- Defined in:
- lib/wbem/cim_obj.rb
Instance Attribute Summary collapse
-
#days ⇒ Object
Returns the value of attribute days.
-
#hours ⇒ Object
Returns the value of attribute hours.
-
#microseconds ⇒ Object
Returns the value of attribute microseconds.
-
#minutes ⇒ Object
Returns the value of attribute minutes.
-
#seconds ⇒ Object
Returns the value of attribute seconds.
Instance Method Summary collapse
-
#initialize(days = 0, hours = 0, minutes = 0, seconds = 0, microseconds = 0) ⇒ TimeDelta
constructor
A new instance of TimeDelta.
Constructor Details
#initialize(days = 0, hours = 0, minutes = 0, seconds = 0, microseconds = 0) ⇒ TimeDelta
Returns a new instance of TimeDelta.
1140 1141 1142 1143 1144 1145 1146 |
# File 'lib/wbem/cim_obj.rb', line 1140 def initialize(days=0, hours=0, minutes=0, seconds=0, microseconds=0) @days = days @hours = hours @minutes = minutes @seconds = seconds @microseconds = microseconds end |
Instance Attribute Details
#days ⇒ Object
Returns the value of attribute days.
1138 1139 1140 |
# File 'lib/wbem/cim_obj.rb', line 1138 def days @days end |
#hours ⇒ Object
Returns the value of attribute hours.
1138 1139 1140 |
# File 'lib/wbem/cim_obj.rb', line 1138 def hours @hours end |
#microseconds ⇒ Object
Returns the value of attribute microseconds.
1138 1139 1140 |
# File 'lib/wbem/cim_obj.rb', line 1138 def microseconds @microseconds end |
#minutes ⇒ Object
Returns the value of attribute minutes.
1138 1139 1140 |
# File 'lib/wbem/cim_obj.rb', line 1138 def minutes @minutes end |
#seconds ⇒ Object
Returns the value of attribute seconds.
1138 1139 1140 |
# File 'lib/wbem/cim_obj.rb', line 1138 def seconds @seconds end |