Class: Datawow::TextClosedQuestion

Inherits:
Object
  • Object
show all
Includes:
Models::Interface
Defined in:
lib/datawow/models/texts/text_closed_questions.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Models::Interface

#all, #create, #find_by

Constructor Details

#initializeTextClosedQuestion

Returns a new instance of TextClosedQuestion.



10
11
12
13
14
15
# File 'lib/datawow/models/texts/text_closed_questions.rb', line 10

def initialize
  @project_key = nil
  @type = :text
  @query_str ||= nil
  @path = 'text/text_closed_questions'
end

Instance Attribute Details

#project_key=(value) ⇒ Object (writeonly)

Sets the attribute project_key

Parameters:

  • value

    the value to set the attribute project_key to.



8
9
10
# File 'lib/datawow/models/texts/text_closed_questions.rb', line 8

def project_key=(value)
  @project_key = value
end