Class: MizuhoBank::RepeatDate
- Inherits:
-
Object
- Object
- MizuhoBank::RepeatDate
- Defined in:
- lib/mizuho_bank.rb
Instance Attribute Summary collapse
-
#hour ⇒ Object
Returns the value of attribute hour.
-
#minute ⇒ Object
Returns the value of attribute minute.
-
#wday ⇒ Object
Returns the value of attribute wday.
Instance Method Summary collapse
Instance Attribute Details
#hour ⇒ Object
Returns the value of attribute hour.
129 130 131 |
# File 'lib/mizuho_bank.rb', line 129 def hour @hour end |
#minute ⇒ Object
Returns the value of attribute minute.
130 131 132 |
# File 'lib/mizuho_bank.rb', line 130 def minute @minute end |
#wday ⇒ Object
Returns the value of attribute wday.
128 129 130 |
# File 'lib/mizuho_bank.rb', line 128 def wday @wday end |
Instance Method Details
#to_s ⇒ Object
132 133 134 135 136 137 138 |
# File 'lib/mizuho_bank.rb', line 132 def to_s if @wday.nil? "%02d:%02d" % [@hour, @minute] else "%s %02d:%02d" % [wday, @hour, @minute] end end |