Class: Cpro::Entities::NoteStatut
- Defined in:
- lib/cpro/entities/note_statut.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #code ⇒ Object
- #contenu ⇒ Object
-
#sujet ⇒ Object
Nom du fichier ayant provoqué l'irrecevabilité, lorsque la note porte sur un flux.
- #to_s ⇒ Object
Methods inherited from Base
#==, #hash, #initialize, #to_h
Constructor Details
This class inherits a constructor from Cpro::Entities::Base
Instance Method Details
#code ⇒ Object
6 7 8 |
# File 'lib/cpro/entities/note_statut.rb', line 6 def code payload["codeContenu"] end |
#contenu ⇒ Object
10 11 12 |
# File 'lib/cpro/entities/note_statut.rb', line 10 def contenu payload["contenu"] end |
#sujet ⇒ Object
Nom du fichier ayant provoqué l'irrecevabilité, lorsque la note porte sur un flux.
15 16 17 |
# File 'lib/cpro/entities/note_statut.rb', line 15 def sujet payload["sujet"] end |
#to_s ⇒ Object
19 20 21 |
# File 'lib/cpro/entities/note_statut.rb', line 19 def to_s [code, contenu].compact.join(" — ") end |