Class: FeideeUtils::AccountGroup
- Includes:
- Mixins::ParentAndPath, Mixins::Type
- Defined in:
- lib/feidee_utils/account_group.rb
Constant Summary collapse
- FieldMappings =
{ name: "name", parent_poid: "parentAccountGroupPOID", raw_path: "path", depth: "depth", raw_type: "type", ordered: "ordered", }.freeze
- IgnoredFields =
[ "userTradingEntityPOID", # WTF "_tempIconName", # Icon name in the app "clientID", # WTF ].freeze
Instance Attribute Summary
Attributes inherited from Record
Attributes included from Record::Namespaced::ClassMethods
Instance Method Summary collapse
Methods included from Mixins::Type
Methods included from Mixins::ParentAndPath
#has_parent?, #parent, #path, #validate_depth_integrity, #validate_one_level_path_integrity, #validate_path_integrity_hard
Methods inherited from Record
#initialize, validate_integrity_globally
Methods included from Record::Accessors::ClassMethods
Methods included from Record::Namespaced::ClassMethods
#collect_subclass, #generate_namespaced_record_classes
Methods included from Record::Persistent::ClassMethods
#all, #find, #find_by_id, #genereate_names
Methods included from Record::Accessors
Constructor Details
This class inherits a constructor from FeideeUtils::Record
Instance Method Details
#validate_integrity ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/feidee_utils/account_group.rb', line 10 def validate_integrity validate_depth_integrity validate_one_level_path_integrity unless (poid == 1 and raw_type == -1) or (raw_type >= 0 and raw_type <= 2) raise "Unexpected account group type #{raw_type}.\n" + inspect end end |