Class: MizuhoBank::RepeatDate

Inherits:
Object
  • Object
show all
Defined in:
lib/mizuho_bank.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#hourObject

Returns the value of attribute hour.



129
130
131
# File 'lib/mizuho_bank.rb', line 129

def hour
  @hour
end

#minuteObject

Returns the value of attribute minute.



130
131
132
# File 'lib/mizuho_bank.rb', line 130

def minute
  @minute
end

#wdayObject

Returns the value of attribute wday.



128
129
130
# File 'lib/mizuho_bank.rb', line 128

def wday
  @wday
end

Instance Method Details

#to_sObject



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