Class: WsCee::CauseInfo
- Inherits:
-
Object
- Object
- WsCee::CauseInfo
- Defined in:
- lib/ws_cee_client/cause_info.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#document_type ⇒ Object
readonly
Returns the value of attribute document_type.
-
#registration_date ⇒ Object
readonly
Returns the value of attribute registration_date.
-
#subject ⇒ Object
readonly
Returns the value of attribute subject.
Instance Method Summary collapse
-
#initialize(cause_hash) ⇒ CauseInfo
constructor
A new instance of CauseInfo.
Constructor Details
#initialize(cause_hash) ⇒ CauseInfo
Returns a new instance of CauseInfo.
8 9 10 11 12 13 14 15 |
# File 'lib/ws_cee_client/cause_info.rb', line 8 def initialize(cause_hash) @code = cause_hash[:code] @document_type = cause_hash[:document_type] @registration_date = cause_hash[:registration_date] @subject = Subject.new cause_hash[:subject_info] 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_info.rb', line 3 def code @code end |
#document_type ⇒ Object (readonly)
Returns the value of attribute document_type.
4 5 6 |
# File 'lib/ws_cee_client/cause_info.rb', line 4 def document_type @document_type end |
#registration_date ⇒ Object (readonly)
Returns the value of attribute registration_date.
5 6 7 |
# File 'lib/ws_cee_client/cause_info.rb', line 5 def registration_date @registration_date end |
#subject ⇒ Object (readonly)
Returns the value of attribute subject.
6 7 8 |
# File 'lib/ws_cee_client/cause_info.rb', line 6 def subject @subject end |