Class: Iesde::Model::Questao
- Inherits:
-
Object
- Object
- Iesde::Model::Questao
- Includes:
- Stringable
- Defined in:
- lib/iesde/model/questao.rb
Instance Attribute Summary collapse
-
#anulada ⇒ Object
Returns the value of attribute anulada.
-
#disciplina_id ⇒ Object
Returns the value of attribute disciplina_id.
-
#enunciado ⇒ Object
Returns the value of attribute enunciado.
-
#formato_questao ⇒ Object
Returns the value of attribute formato_questao.
-
#formato_questao_id ⇒ Object
Returns the value of attribute formato_questao_id.
-
#peso ⇒ Object
Returns the value of attribute peso.
-
#qtd_questoes ⇒ Object
Returns the value of attribute qtd_questoes.
-
#questao_id ⇒ Object
Returns the value of attribute questao_id.
-
#situacao ⇒ Object
Returns the value of attribute situacao.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(*args) ⇒ Questao
constructor
A new instance of Questao.
Methods included from Stringable
Constructor Details
#initialize(*args) ⇒ Questao
Returns a new instance of Questao.
8 9 10 |
# File 'lib/iesde/model/questao.rb', line 8 def initialize(*args) @questao_id, @formato_questao_id, @formato_questao, @disciplina_id, @enunciado, @peso, @qtd_questoes, @anulada, @situacao = args end |
Instance Attribute Details
#anulada ⇒ Object
Returns the value of attribute anulada.
6 7 8 |
# File 'lib/iesde/model/questao.rb', line 6 def anulada @anulada end |
#disciplina_id ⇒ Object
Returns the value of attribute disciplina_id.
6 7 8 |
# File 'lib/iesde/model/questao.rb', line 6 def disciplina_id @disciplina_id end |
#enunciado ⇒ Object
Returns the value of attribute enunciado.
6 7 8 |
# File 'lib/iesde/model/questao.rb', line 6 def enunciado @enunciado end |
#formato_questao ⇒ Object
Returns the value of attribute formato_questao.
6 7 8 |
# File 'lib/iesde/model/questao.rb', line 6 def formato_questao @formato_questao end |
#formato_questao_id ⇒ Object
Returns the value of attribute formato_questao_id.
6 7 8 |
# File 'lib/iesde/model/questao.rb', line 6 def formato_questao_id @formato_questao_id end |
#peso ⇒ Object
Returns the value of attribute peso.
6 7 8 |
# File 'lib/iesde/model/questao.rb', line 6 def peso @peso end |
#qtd_questoes ⇒ Object
Returns the value of attribute qtd_questoes.
6 7 8 |
# File 'lib/iesde/model/questao.rb', line 6 def qtd_questoes @qtd_questoes end |
#questao_id ⇒ Object
Returns the value of attribute questao_id.
6 7 8 |
# File 'lib/iesde/model/questao.rb', line 6 def questao_id @questao_id end |
#situacao ⇒ Object
Returns the value of attribute situacao.
6 7 8 |
# File 'lib/iesde/model/questao.rb', line 6 def situacao @situacao end |
Class Method Details
.buscar(opts = {}) ⇒ Object
12 13 14 15 |
# File 'lib/iesde/model/questao.rb', line 12 def self.buscar(opts = {}) questoes = Iesde::Api::ObterBancoQuestoes.new(:json, opts) questoes.underscorize_fields(Questao) end |