Class: ViewModel::Cs63Wrapper
- Inherits:
-
Object
- Object
- ViewModel::Cs63Wrapper
- Defined in:
- lib/view_model/cs63_wrapper.rb
Instance Attribute Summary collapse
-
#view_model ⇒ Object
readonly
Returns the value of attribute view_model.
Instance Method Summary collapse
- #get_view_model ⇒ Object
-
#initialize(xml_doc, _schema_type, _additional_data = {}) ⇒ Cs63Wrapper
constructor
A new instance of Cs63Wrapper.
- #to_certificate_summary ⇒ Object
- #to_hash ⇒ Object
- #type ⇒ Object
Constructor Details
#initialize(xml_doc, _schema_type, _additional_data = {}) ⇒ Cs63Wrapper
Returns a new instance of Cs63Wrapper.
5 6 7 8 9 10 |
# File 'lib/view_model/cs63_wrapper.rb', line 5 def initialize(xml_doc, _schema_type, _additional_data = {}) @view_model = ViewModel::Cs63::CommonSchema.new xml_doc # @view_model = build_view_model(xml_doc, schema_type) @summary = Presenter::Cs63::Summary.new(view_model) @certificate_summary = Presenter::Cs63::CertificateSummary.new(view_model) end |
Instance Attribute Details
#view_model ⇒ Object (readonly)
Returns the value of attribute view_model.
3 4 5 |
# File 'lib/view_model/cs63_wrapper.rb', line 3 def view_model @view_model end |
Instance Method Details
#get_view_model ⇒ Object
24 25 26 |
# File 'lib/view_model/cs63_wrapper.rb', line 24 def get_view_model view_model end |
#to_certificate_summary ⇒ Object
20 21 22 |
# File 'lib/view_model/cs63_wrapper.rb', line 20 def to_certificate_summary @certificate_summary.to_certificate_summary end |
#to_hash ⇒ Object
16 17 18 |
# File 'lib/view_model/cs63_wrapper.rb', line 16 def to_hash @summary.to_hash end |
#type ⇒ Object
12 13 14 |
# File 'lib/view_model/cs63_wrapper.rb', line 12 def type :CS63 end |