Class: WsCee::CauseDetail
- Inherits:
-
Object
- Object
- WsCee::CauseDetail
- Defined in:
- lib/ws_cee_client/cause_detail.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#documents ⇒ Object
readonly
Returns the value of attribute documents.
Instance Method Summary collapse
-
#initialize(cause_detail_hash) ⇒ CauseDetail
constructor
A new instance of CauseDetail.
Constructor Details
#initialize(cause_detail_hash) ⇒ CauseDetail
Returns a new instance of CauseDetail.
7 8 9 10 11 12 13 14 15 |
# File 'lib/ws_cee_client/cause_detail.rb', line 7 def initialize(cause_detail_hash) @code = cause_detail_hash[:code] @description = cause_detail_hash[:description] @documents = [] parse_document cause_detail_hash[:document] rescue NoMethodError raise WsCee::ParsingError end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/ws_cee_client/cause_detail.rb', line 3 def code @code end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
4 5 6 |
# File 'lib/ws_cee_client/cause_detail.rb', line 4 def description @description end |
#documents ⇒ Object (readonly)
Returns the value of attribute documents.
5 6 7 |
# File 'lib/ws_cee_client/cause_detail.rb', line 5 def documents @documents end |