Class: Summon::Date
Instance Attribute Summary collapse
-
#day ⇒ Object
readonly
Returns the value of attribute day.
-
#month ⇒ Object
readonly
Returns the value of attribute month.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
-
#year ⇒ Object
readonly
Returns the value of attribute year.
Instance Method Summary collapse
Methods inherited from Schema
Instance Attribute Details
#day ⇒ Object (readonly)
Returns the value of attribute day.
3 4 5 |
# File 'lib/summon/schema/date.rb', line 3 def day @day end |
#month ⇒ Object (readonly)
Returns the value of attribute month.
4 5 6 |
# File 'lib/summon/schema/date.rb', line 4 def month @month end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
5 6 7 |
# File 'lib/summon/schema/date.rb', line 5 def text @text end |
#year ⇒ Object (readonly)
Returns the value of attribute year.
6 7 8 |
# File 'lib/summon/schema/date.rb', line 6 def year @year end |
Instance Method Details
#to_s(options = {}) ⇒ Object
20 21 22 |
# File 'lib/summon/schema/date.rb', line 20 def to_s( = {}) "Date: #{text}" end |