Class: Cpro::Entities::ChangementStatut
- Inherits:
-
Base
- Object
- Base
- Cpro::Entities::ChangementStatut
show all
- Defined in:
- lib/cpro/entities/changement_statut.rb
Instance Attribute Summary
Attributes inherited from Base
#payload
Instance Method Summary
collapse
Methods inherited from Base
#==, #hash, #initialize, #to_h
Instance Method Details
#date ⇒ Object
10
11
12
|
# File 'lib/cpro/entities/changement_statut.rb', line 10
def date
@date ||= parse_time(payload["dateEtHeureMiseAJourStatut"])
end
|
#motifs_rejet ⇒ Object
14
15
16
|
# File 'lib/cpro/entities/changement_statut.rb', line 14
def motifs_rejet
@motifs_rejet ||= Array(payload["detailStatut"]).map { |detail| MotifRejet.new(detail) }
end
|
#rejet? ⇒ Boolean
18
19
20
|
# File 'lib/cpro/entities/changement_statut.rb', line 18
def rejet?
!motifs_rejet.empty?
end
|
#statut ⇒ Object
6
7
8
|
# File 'lib/cpro/entities/changement_statut.rb', line 6
def statut
payload["statut"]
end
|
#to_s ⇒ Object
22
23
24
|
# File 'lib/cpro/entities/changement_statut.rb', line 22
def to_s
statut.to_s
end
|