Class: PropertiesHandler
- Inherits:
-
Riddl::Utils::Properties::HandlerBase
- Object
- Riddl::Utils::Properties::HandlerBase
- PropertiesHandler
- Defined in:
- lib/cpee/handler_properties.rb
Overview
This file is part of CPEE.
CPEE is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
CPEE is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with CPEE (file COPYING in the main directory). If not, see <www.gnu.org/licenses/>.
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
43 |
# File 'lib/cpee/handler_properties.rb', line 43 def create; sync; end |
#delete ⇒ Object
45 |
# File 'lib/cpee/handler_properties.rb', line 45 def delete; sync; end |
#sync ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/cpee/handler_properties.rb', line 16 def sync case @property when 'handlerwrapper' @data.unserialize_handlerwrapper! @data.notify('properties/handlerwrapper/change', :instance => @data.instance) when 'description' nots = @data.unserialize_description! @data.notify('properties/description/change', :instance => @data.instance) nots.uniq.each do |noti| @data.notify(*noti) end when 'endpoints' @data.unserialize_endpoints! @data.notify('properties/endpoints/change', :instance => @data.instance) when 'dataelements' @data.unserialize_dataelements! @data.notify('properties/dataelements/change', :instance => @data.instance) when 'positions' @data.unserialize_positions! @data.notify('properties/position/change', :instance => @data.instance) when 'state' @data.unserialize_state! else nil end end |
#update ⇒ Object
44 |
# File 'lib/cpee/handler_properties.rb', line 44 def update; sync; end |