Class: Cpro::Entities::NoteStatut

Inherits:
Base
  • Object
show all
Defined in:
lib/cpro/entities/note_statut.rb

Instance Attribute Summary

Attributes inherited from Base

#payload

Instance Method Summary collapse

Methods inherited from Base

#==, #hash, #initialize, #to_h

Constructor Details

This class inherits a constructor from Cpro::Entities::Base

Instance Method Details

#codeObject



6
7
8
# File 'lib/cpro/entities/note_statut.rb', line 6

def code
  payload["codeContenu"]
end

#contenuObject



10
11
12
# File 'lib/cpro/entities/note_statut.rb', line 10

def contenu
  payload["contenu"]
end

#sujetObject

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_sObject



19
20
21
# File 'lib/cpro/entities/note_statut.rb', line 19

def to_s
  [code, contenu].compact.join("")
end