Class: ModulePos::Fiscalization::Entities::DocStatus
- Inherits:
-
Base
- Object
- Dry::Struct
- Base
- ModulePos::Fiscalization::Entities::DocStatus
show all
- Defined in:
- lib/module_pos/fiscalization/entities/doc_status.rb
Defined Under Namespace
Classes: FailureInfo, FiscalInfo
Instance Method Summary
collapse
Methods inherited from Base
#as_json, #to_json
Instance Method Details
#completed? ⇒ Boolean
43
44
45
|
# File 'lib/module_pos/fiscalization/entities/doc_status.rb', line 43
def completed?
status == "COMPLETED"
end
|
#failed? ⇒ Boolean
30
31
32
|
# File 'lib/module_pos/fiscalization/entities/doc_status.rb', line 30
def failed?
status == "FAILED"
end
|
#pending? ⇒ Boolean
34
35
36
|
# File 'lib/module_pos/fiscalization/entities/doc_status.rb', line 34
def pending?
status == "PENDING"
end
|
#printed? ⇒ Boolean
Also known as:
success?
38
39
40
|
# File 'lib/module_pos/fiscalization/entities/doc_status.rb', line 38
def printed?
status == "PRINTED"
end
|