Class: Ufebs::Entities::EdReestrInfo
- Inherits:
-
Object
- Object
- Ufebs::Entities::EdReestrInfo
- Includes:
- HappyMapper
- Defined in:
- lib/ufebs/entities/ed_reestr_info.rb
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ EdReestrInfo
constructor
A new instance of EdReestrInfo.
- #set_ed_reestr_field_lists(value) ⇒ Object
Constructor Details
#initialize(params = {}) ⇒ EdReestrInfo
Returns a new instance of EdReestrInfo.
16 17 18 19 20 21 22 23 |
# File 'lib/ufebs/entities/ed_reestr_info.rb', line 16 def initialize(params = {}) params.each do |key, value| case key.to_sym when :ed_reestr_field_lists then set_ed_reestr_field_lists(value) else instance_variable_set("@#{key}".to_sym, value) end end end |
Instance Method Details
#set_ed_reestr_field_lists(value) ⇒ Object
25 26 27 28 |
# File 'lib/ufebs/entities/ed_reestr_info.rb', line 25 def set_ed_reestr_field_lists(value) @ed_reestr_field_lists = value.map { |params| Ufebs::Entities::EdFieldList.new(params) } end |