Class: Reporter::Record::Question::Base

Inherits:
Base
  • Object
show all
Defined in:
lib/reporter/record/question/base.rb

Overview

Public: Base class representing a Reporter survey question.

Direct Known Subclasses

Placeholder, Single

Instance Method Summary collapse

Methods inherited from Base

#==, #hash, #initialize

Constructor Details

This class inherits a constructor from Reporter::Record::Base

Instance Method Details

#promptObject

Pubilc: Represents the prompt text of this question.

Returns a String containing the prompt text of this question.



12
13
14
# File 'lib/reporter/record/question/base.rb', line 12

def prompt
  @prompt ||= @data["prompt"].to_s
end