Class: Iesde::Model::Alternativa
- Inherits:
-
Object
- Object
- Iesde::Model::Alternativa
- Includes:
- Stringable
- Defined in:
- lib/iesde/model/alternativa.rb
Instance Attribute Summary collapse
-
#alternativa_id ⇒ Object
Returns the value of attribute alternativa_id.
-
#correta ⇒ Object
Returns the value of attribute correta.
-
#questao_id ⇒ Object
Returns the value of attribute questao_id.
-
#texto ⇒ Object
Returns the value of attribute texto.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(*args) ⇒ Alternativa
constructor
A new instance of Alternativa.
Methods included from Stringable
Constructor Details
#initialize(*args) ⇒ Alternativa
Returns a new instance of Alternativa.
8 9 |
# File 'lib/iesde/model/alternativa.rb', line 8 def initialize(*args) end |
Instance Attribute Details
#alternativa_id ⇒ Object
Returns the value of attribute alternativa_id.
6 7 8 |
# File 'lib/iesde/model/alternativa.rb', line 6 def alternativa_id @alternativa_id end |
#correta ⇒ Object
Returns the value of attribute correta.
6 7 8 |
# File 'lib/iesde/model/alternativa.rb', line 6 def correta @correta end |
#questao_id ⇒ Object
Returns the value of attribute questao_id.
6 7 8 |
# File 'lib/iesde/model/alternativa.rb', line 6 def questao_id @questao_id end |
#texto ⇒ Object
Returns the value of attribute texto.
6 7 8 |
# File 'lib/iesde/model/alternativa.rb', line 6 def texto @texto end |
Class Method Details
.buscar(opts = {}) ⇒ Object
11 12 13 14 |
# File 'lib/iesde/model/alternativa.rb', line 11 def self.buscar(opts = {}) alternativas = Iesde::Api::ObterAlternativas.new(:json, opts) alternativas.underscorize_fields(Alternativa) end |