Class: Zm::Client::FilterRuleJsnsInitializer

Inherits:
Object
  • Object
show all
Defined in:
lib/zm/client/filter_rules/filter_rule_jsns_initializer.rb

Overview

class for initialize account filter rule

Class Method Summary collapse

Class Method Details

.create(parent, json) ⇒ Object



8
9
10
11
# File 'lib/zm/client/filter_rules/filter_rule_jsns_initializer.rb', line 8

def create(parent, json)
  item = FilterRule.new(parent)
  update(item, json)
end

.update(item, json) ⇒ Object



13
14
15
16
17
18
19
20
# File 'lib/zm/client/filter_rules/filter_rule_jsns_initializer.rb', line 13

def update(item, json)
  item.name = json[:name]
  item.active = json[:active]
  item.filterTests = json[:filterTests]
  item.filterActions = json[:filterActions]

  item
end