Class: Summon::Date

Inherits:
Schema show all
Defined in:
lib/summon/schema/date.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Schema

inherited

Instance Attribute Details

#dayObject (readonly)

Returns the value of attribute day.



3
4
5
# File 'lib/summon/schema/date.rb', line 3

def day
  @day
end

#monthObject (readonly)

Returns the value of attribute month.



4
5
6
# File 'lib/summon/schema/date.rb', line 4

def month
  @month
end

#textObject (readonly)

Returns the value of attribute text.



5
6
7
# File 'lib/summon/schema/date.rb', line 5

def text
  @text
end

#yearObject (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(options = {})
  "Date: #{text}"
end