Class: Iesde::Model::Aula
- Inherits:
-
Object
- Object
- Iesde::Model::Aula
- Includes:
- Stringable
- Defined in:
- lib/iesde/model/aula.rb
Instance Attribute Summary collapse
-
#aula_id ⇒ Object
Returns the value of attribute aula_id.
-
#curso_id ⇒ Object
Returns the value of attribute curso_id.
-
#disciplina_id ⇒ Object
Returns the value of attribute disciplina_id.
-
#grade_id ⇒ Object
Returns the value of attribute grade_id.
-
#matricula_id ⇒ Object
Returns the value of attribute matricula_id.
-
#tema ⇒ Object
Returns the value of attribute tema.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(*args) ⇒ Aula
constructor
A new instance of Aula.
- #link_video(opts = {}) ⇒ Object
Methods included from Stringable
Constructor Details
#initialize(*args) ⇒ Aula
Returns a new instance of Aula.
8 9 10 |
# File 'lib/iesde/model/aula.rb', line 8 def initialize(*args) @matricula_id, @curso_id, @grade_id, @disciplina_id, @aula_id, @tema = args end |
Instance Attribute Details
#aula_id ⇒ Object
Returns the value of attribute aula_id.
6 7 8 |
# File 'lib/iesde/model/aula.rb', line 6 def aula_id @aula_id end |
#curso_id ⇒ Object
Returns the value of attribute curso_id.
6 7 8 |
# File 'lib/iesde/model/aula.rb', line 6 def curso_id @curso_id end |
#disciplina_id ⇒ Object
Returns the value of attribute disciplina_id.
6 7 8 |
# File 'lib/iesde/model/aula.rb', line 6 def disciplina_id @disciplina_id end |
#grade_id ⇒ Object
Returns the value of attribute grade_id.
6 7 8 |
# File 'lib/iesde/model/aula.rb', line 6 def grade_id @grade_id end |
#matricula_id ⇒ Object
Returns the value of attribute matricula_id.
6 7 8 |
# File 'lib/iesde/model/aula.rb', line 6 def matricula_id @matricula_id end |
#tema ⇒ Object
Returns the value of attribute tema.
6 7 8 |
# File 'lib/iesde/model/aula.rb', line 6 def tema @tema end |
Class Method Details
.buscar(opts) ⇒ Object
12 13 14 15 |
# File 'lib/iesde/model/aula.rb', line 12 def self.buscar(opts) aulas = Iesde::Api::ObterAula.new(:json, opts) aulas.underscorize_fields(Aula) end |
Instance Method Details
#link_video(opts = {}) ⇒ Object
17 18 19 20 21 22 |
# File 'lib/iesde/model/aula.rb', line 17 def link_video(opts = {}) Iesde::Api::ObterVideo.new(:json, { 'MatriculaID' => matricula_id, 'AulaID' => aula_id }.merge(opts)).link end |