Class: Smartdown::Model::Element::Question::Date

Inherits:
Struct
  • Object
show all
Defined in:
lib/smartdown/model/element/question/date.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#aliasObject

Returns the value of attribute alias

Returns:

  • (Object)

    the current value of alias



7
8
9
# File 'lib/smartdown/model/element/question/date.rb', line 7

def alias
  @alias
end

#fromObject

Returns the value of attribute from

Returns:

  • (Object)

    the current value of from



7
8
9
# File 'lib/smartdown/model/element/question/date.rb', line 7

def from
  @from
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



7
8
9
# File 'lib/smartdown/model/element/question/date.rb', line 7

def name
  @name
end

#toObject

Returns the value of attribute to

Returns:

  • (Object)

    the current value of to



7
8
9
# File 'lib/smartdown/model/element/question/date.rb', line 7

def to
  @to
end

Instance Method Details

#answer_typeObject



8
9
10
# File 'lib/smartdown/model/element/question/date.rb', line 8

def answer_type
  Smartdown::Model::Answer::Date
end