Class: Zm::Client::FilterRule

Inherits:
Base::Object show all
Defined in:
lib/zm/client/filter_rules/filter_rule.rb

Overview

class account filter rule

Instance Attribute Summary collapse

Attributes inherited from Base::Object

#id, #parent, #token

Instance Method Summary collapse

Methods inherited from Base::Object

#clone, #initialize, #inspect, #instance_variables_map, #logger, #recorded?, #save!, #to_s, #update_attribute

Constructor Details

This class inherits a constructor from Zm::Client::Base::Object

Instance Attribute Details

#activeObject

Returns the value of attribute active.



7
8
9
# File 'lib/zm/client/filter_rules/filter_rule.rb', line 7

def active
  @active
end

#filterActionsObject

Returns the value of attribute filterActions.



7
8
9
# File 'lib/zm/client/filter_rules/filter_rule.rb', line 7

def filterActions
  @filterActions
end

#filterTestsObject

Returns the value of attribute filterTests.



7
8
9
# File 'lib/zm/client/filter_rules/filter_rule.rb', line 7

def filterTests
  @filterTests
end

#nameObject

Returns the value of attribute name.



7
8
9
# File 'lib/zm/client/filter_rules/filter_rule.rb', line 7

def name
  @name
end

Instance Method Details

#to_hObject



9
10
11
12
13
14
15
16
# File 'lib/zm/client/filter_rules/filter_rule.rb', line 9

def to_h
  {
    name: name,
    active: active,
    filterTests: filterTests,
    filterActions: filterActions
  }
end