class WsCee::CauseInfo
Attributes
code[R]
document_type[R]
registration_date[R]
subject[R]
Public Class Methods
new(cause_hash)
click to toggle source
# 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