Class: BigMarkerClient::Models::SurveyResult

Inherits:
Base
  • Object
show all
Defined in:
lib/big_marker_client/models/survey_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#initialize, #to_h

Constructor Details

This class inherits a constructor from BigMarkerClient::Models::Base

Instance Attribute Details

#dateObject

Returns the value of attribute date.



5
6
7
# File 'lib/big_marker_client/models/survey_result.rb', line 5

def date
  @date
end

#emailObject

Returns the value of attribute email.



4
5
6
# File 'lib/big_marker_client/models/survey_result.rb', line 4

def email
  @email
end

#questionObject

Returns the value of attribute question.



4
5
6
# File 'lib/big_marker_client/models/survey_result.rb', line 4

def question
  @question
end

#responseObject

Returns the value of attribute response.



4
5
6
# File 'lib/big_marker_client/models/survey_result.rb', line 4

def response
  @response
end

Instance Method Details

#answered?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/big_marker_client/models/survey_result.rb', line 13

def answered?
  !response.nil? && response != ""
end